From e51a2911b04917c3ef830fe0068211a24e87a57d Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Fri, 19 Mar 2021 01:42:42 +0100 Subject: [PATCH] Fix unknown binary header message. Fixes #11. --- grmn/tlv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grmn/tlv.py b/grmn/tlv.py index 8afee1a..efd4fe6 100644 --- a/grmn/tlv.py +++ b/grmn/tlv.py @@ -404,7 +404,7 @@ class TLVbinary0401(TLVbinary): txt += "\n - hw_id: 0x{:04x} / {:d} ({})".format(hwid, hwid, devices.DEVICES.get(hwid, RED + "Unknown device" + RESET)) txt += "\n - Version: 0x{:04x} / {:d}".format(version, version) else: - txt += "\n - Unknown header format (0x{:04x} / 0x{:04x})".format(hdr1, hdr2) + txt += "\n - Unknown header format (0x{})".format(hexlify(skuprobe).decode("utf-8")) #if not self.is_parsed: # self.parse() return txt