mirror of https://github.com/commaai/panda.git
make explicit, there was no bug only because the if statement is identical to above
This commit is contained in:
parent
b342c2d724
commit
fcb2a106b9
|
@ -149,6 +149,7 @@ int get_addr_check_index(CANPacket_t *to_push, AddrCheckStruct addr_list[], cons
|
|||
}
|
||||
}
|
||||
|
||||
if (addr_list[i].msg_seen) {
|
||||
int idx = addr_list[i].index;
|
||||
if ((addr == addr_list[i].msg[idx].addr) && (bus == addr_list[i].msg[idx].bus) &&
|
||||
(length == addr_list[i].msg[idx].len)) {
|
||||
|
@ -156,6 +157,7 @@ int get_addr_check_index(CANPacket_t *to_push, AddrCheckStruct addr_list[], cons
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue