Skip to content

Commit

Permalink
always LIVE on EON
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed May 23, 2019
1 parent dc5979f commit a06af9f
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,17 +290,20 @@ int usb_cb_control_msg(USB_Setup_TypeDef *setup, uint8_t *resp, int hardwired) {
// we have to disable power savings (fix for GM and Tesla)
power_save_disable();
}
switch (setup->b.wValue.w) {
case SAFETY_NOOUTPUT:
can_silent = ALL_CAN_SILENT;
break;
case SAFETY_ELM327:
can_silent = ALL_CAN_BUT_MAIN_SILENT;
break;
default:
can_silent = ALL_CAN_LIVE;
break;
}
#ifndef EON
// always LIVE on EON
switch (setup->b.wValue.w) {
case SAFETY_NOOUTPUT:
can_silent = ALL_CAN_SILENT;
break;
case SAFETY_ELM327:
can_silent = ALL_CAN_BUT_MAIN_SILENT;
break;
default:
can_silent = ALL_CAN_LIVE;
break;
}
#endif
can_init_all();
}
break;
Expand Down

0 comments on commit a06af9f

Please sign in to comment.