diff --git a/opendbc/can/common.h b/opendbc/can/common.h index 2b7dcbaea0..247ac62aa2 100644 --- a/opendbc/can/common.h +++ b/opendbc/can/common.h @@ -81,7 +81,7 @@ class CANParser { const std::vector> &messages); CANParser(int abus, const std::string& dbc_name, bool ignore_checksum, bool ignore_counter); std::set update(const std::vector &can_data); - MessageState *messageState(uint32_t address) { return &message_states.at(address); } + MessageState *getMessageState(uint32_t address) { return &message_states.at(address); } protected: void UpdateCans(const CanData &can, std::set &updated_addresses); diff --git a/opendbc/can/common.pxd b/opendbc/can/common.pxd index ef977d4ac4..33e368a839 100644 --- a/opendbc/can/common.pxd +++ b/opendbc/can/common.pxd @@ -82,7 +82,7 @@ cdef extern from "common.h": bool bus_timeout CANParser(int, string, vector[pair[uint32_t, int]]) except + set[uint32_t] update(vector[CanData]&) except + - MessageState *messageState(uint32_t address) + MessageState *getMessageState(uint32_t address) cdef cppclass CANPacker: CANPacker(string) diff --git a/opendbc/can/parser_pyx.pyx b/opendbc/can/parser_pyx.pyx index 4dde79f187..f0f8c12aed 100644 --- a/opendbc/can/parser_pyx.pyx +++ b/opendbc/can/parser_pyx.pyx @@ -101,7 +101,7 @@ cdef class CANParser: vl_all = self.vl_all[addr] ts_nanos = self.ts_nanos[addr] - state = self.can.messageState(addr) + state = self.can.getMessageState(addr) for i in range(state.parse_sigs.size()): name = state.parse_sigs[i].name vl[name] = state.vals[i]