diff options
author | Christina Quast <chrysh.ng+git@gmail.com> | 2015-04-18 13:31:42 +0200 |
---|---|---|
committer | Christina Quast <chrysh.ng+git@gmail.com> | 2015-04-18 14:34:08 +0200 |
commit | fb91bb7069a8edb1a18beed27709e3570e8b2461 (patch) | |
tree | e2d738eac594c66367dc1f7b7074ec66db21f68e /usb_application/util.py | |
parent | 158c1dd448958d3e2f9079094d9cf852e67cd37c (diff) |
Parsing ajusted: respond to phone requests
Diffstat (limited to 'usb_application/util.py')
-rw-r--r-- | usb_application/util.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usb_application/util.py b/usb_application/util.py index b6ef5a7..15906bf 100644 --- a/usb_application/util.py +++ b/usb_application/util.py @@ -1,5 +1,7 @@ def HEX(vals): if vals is not None: + if type(vals) is int: + return "%.2x"%vals return ' '.join('%.2x'%x for x in vals) - + return '' |