From 6d797bffbd7571df98198df26977a39b86630ac7 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Tue, 26 May 2020 15:18:35 -0400 Subject: Wow, python-version-independent hexadecimal is painful --- bin/dfu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/dfu') diff --git a/bin/dfu b/bin/dfu index d37d3ba..50015da 100755 --- a/bin/dfu +++ b/bin/dfu @@ -80,7 +80,7 @@ def _write(dst, data): dst.write(data[i]) time.sleep(0.1) if len(data) == 4: - print("Wrote 0x{}".format(hexlify(data))) + print("Wrote 0x{}".format(hexlify(data).decode("ascii"))) else: print("Wrote {!r}".format(data)) -- cgit v1.2.3