Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyundai CAN-FD: Move CRC compute function to common Hyundai safety #1634

Merged
Prev Previous commit
Next Next commit
cleanup
  • Loading branch information
sunnyhaibin committed Sep 1, 2023
commit 5c744ca53486595aba71ee1297cf59dbc2679a35
4 changes: 1 addition & 3 deletions board/safety/safety_hyundai_canfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ static uint32_t hyundai_canfd_compute_checksum(CANPacket_t *to_push) {
int len = GET_LEN(to_push);
uint32_t address = GET_ADDR(to_push);

uint16_t crc = hyundai_common_canfd_compute_checksum(to_push, len, address);

return crc;
return hyundai_common_canfd_compute_checksum(to_push, len, address);
}

static int hyundai_canfd_rx_hook(CANPacket_t *to_push) {
Expand Down