Skip to content

Commit

Permalink
fix uint
Browse files Browse the repository at this point in the history
  • Loading branch information
ebg1223 committed May 26, 2023
1 parent e038b47 commit c9233dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions board/safety/safety_hyundai_canfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ static addr_checks build_canfd_addr_checks(void) {
return (addr_checks){base_addr_checks, BASE_ADDR_CHECK_LEN};
}

for (int i = 0; i < BASE_ADDR_CHECK_LEN; i++) {
for (uint8_t i = 0; i < BASE_ADDR_CHECK_LEN; i++) {
new_addresses[i] = base_addr_checks[i];
}

if (hyundai_camera_scc) {
new_addresses[BASE_ADDR_CHECK_LEN] = (AddrCheckStruct){.msg = {{0x1a0, 0, 32, .check_checksum = true, .max_counter = 0xffU, .expected_timestep = 20000U}, { 0 }, { 0 }}};
} else {
Expand Down

0 comments on commit c9233dc

Please sign in to comment.