fix warnings in parser_pyx build

master
Adeeb Shihadeh 2020-06-29 16:18:45 -07:00
parent 7cc9219a92
commit 55e9af71fc
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@ cdef class CANParser:
self.can_invalid_cnt = CAN_INVALID_CNT
num_msgs = self.dbc[0].num_msgs
cdef int i
cdef int num_msgs = self.dbc[0].num_msgs
for i in range(num_msgs):
msg = self.dbc[0].msgs[i]
name = msg.name.decode('utf8')