From 1fb36ebc4042a452489044bd231a7eb0b8997507 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 28 Aug 2019 11:41:30 +1000 Subject: [PATCH] protocol: fix typo in printing a NordicData object Signed-off-by: Peter Hutterer --- tuhi/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuhi/protocol.py b/tuhi/protocol.py index 25a91e5..6c02419 100644 --- a/tuhi/protocol.py +++ b/tuhi/protocol.py @@ -338,7 +338,7 @@ class NordicData(list): raise UnexpectedDataError(bs, f'Invalid data: length field {self.length}, data length is {len(data)}') def __str__(self): - return f'{self.name if self.Name else "UNKNOWN"}{self.opcode:02x} / {self.length:02x} / {as_hex_string(self)}' + return f'{self.name if self.name else "UNKNOWN"}{self.opcode:02x} / {self.length:02x} / {as_hex_string(self)}' class ProtocolError(Exception):