Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Sep 28, 2024
1 parent 6413487 commit a8561f1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions board/safety.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@
#define SAFETY_BODY 27U
#define SAFETY_HYUNDAI_CANFD 28U

uint32_t GET_BYTES(const CANPacket_t *msg, int start, int len) {
uint32_t ret = 0U;
for (int i = 0; i < len; i++) {
const uint32_t shift = i * 8;
ret |= (((uint32_t)msg->data[start + i]) << shift);
}
return ret;
}

const int MAX_WRONG_COUNTERS = 5;

// This can be set by the safety hooks
Expand Down

0 comments on commit a8561f1

Please sign in to comment.