mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-07-26 20:32:04 +08:00
fix the stupid bug
This commit is contained in:
+3
-1
@@ -81,7 +81,9 @@ void set_safety_mode(uint16_t mode, uint16_t param) {
|
||||
set_intercept_relay(true, false);
|
||||
heartbeat_counter = 0U;
|
||||
heartbeat_lost = false;
|
||||
if (GET_FLAG(param, 4) && GET_FLAG(param, (1 | 4))) { // TI Enabled for GEN 1
|
||||
const int FLAG_GEN1 = 1;
|
||||
const int FLAG_TORQUE_INTERCEPTOR = 8;
|
||||
if (GET_FLAG(param, 4) && GET_FLAG(param, 8)) { // TI Enabled for GEN 1
|
||||
current_board->set_can_mode(CAN_MODE_OBD_CAN2);
|
||||
} else {
|
||||
current_board->set_can_mode(CAN_MODE_NORMAL);
|
||||
|
||||
Reference in New Issue
Block a user