Bugfix: Fix harness error when starting car (#572)

* Bugfix: Fix harness error when starting car

* fix misra violation

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
master
Andre Volmensky 2020-07-19 15:08:21 +09:00 committed by GitHub
parent b3e278755c
commit 4b576ab13d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ static int nissan_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) {
cruise_engaged_prev = cruise_engaged;
}
generic_rx_checks((addr == 0x169));
generic_rx_checks((addr == 0x169) && (bus == 0));
}
return valid;
}