From de1e9ae4ca6646014c99f38e15353cddf6226c00 Mon Sep 17 00:00:00 2001 From: deanlee Date: Sat, 8 Jun 2024 10:24:02 +0800 Subject: [PATCH] merge master --- can/parser_pyx.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/can/parser_pyx.pyx b/can/parser_pyx.pyx index e7be7bcc1c..92526867b2 100644 --- a/can/parser_pyx.pyx +++ b/can/parser_pyx.pyx @@ -90,7 +90,8 @@ cdef class CANParser: self.can = new cpp_CANParser(bus, dbc_name, message_v) for address, _ in message_v: - name = address_to_msg_name[address] + m = self.dbc.addr_to_msg.at(address) + name = m.name.decode("utf8") state = MessageState.create(self.can.messageState(address)) self.vl[name] = self.vl[address] = ValueDict(state, MessageState.value) self.vl_all[name] = self.vl_all[address] = ValueDict(state, MessageState.all_values)