array to hex function, reduced usb timeout

This commit is contained in:
Christina Quast
2015-04-11 08:42:38 +02:00
parent 95d6616ba1
commit f2e53f0553
3 changed files with 17 additions and 8 deletions

5
usb_application/util.py Normal file
View File

@@ -0,0 +1,5 @@
def HEX(vals):
if vals is not None:
return ' '.join('%.2x'%x for x in vals)