Skip to content

Commit

Permalink
pandad: reset CAN comms on checksum failure (#32629)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh authored Jun 5, 2024
1 parent 34e3296 commit 877b810
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion panda
Submodule panda updated 1 files
+25 −16 board/jungle/main.c
2 changes: 1 addition & 1 deletion selfdrive/pandad/panda.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 877b810

Please sign in to comment.