Ensure hexstr helper actually received a list of bytes
Otherwise, the formatted output is rather bogus. Found with a test case.
This commit is contained in:
parent
53184b549e
commit
0ca8b2ea2d
@ -53,7 +53,7 @@ class Utils:
|
|||||||
def hexstr(cls, bytestr, sep=""):
|
def hexstr(cls, bytestr, sep=""):
|
||||||
"""make formatted hex string output from byte sequence"""
|
"""make formatted hex string output from byte sequence"""
|
||||||
|
|
||||||
return sep.join(["%02X" % x for x in bytestr])
|
return sep.join(["%02X" % x for x in bytes(bytestr)])
|
||||||
|
|
||||||
|
|
||||||
class BaudType:
|
class BaudType:
|
||||||
|
Loading…
Reference in New Issue
Block a user