mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 06:52:07 +08:00
pandad: reset CAN comms on checksum failure (#32629)
This commit is contained in:
+1
-1
Submodule panda updated: 77ecf515e5...faa1802669
@@ -246,9 +246,9 @@ bool Panda::unpack_can_buffer(uint8_t *data, uint32_t &size, std::vector<can_fra
|
||||
}
|
||||
|
||||
if (calculate_checksum(&data[pos], sizeof(can_header) + data_len) != 0) {
|
||||
// TODO: also reset CAN comms?
|
||||
LOGE("Panda CAN checksum failed");
|
||||
size = 0;
|
||||
can_reset_communications();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user