mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 09:13:52 +08:00
current_safety_mode
This commit is contained in:
@@ -472,7 +472,9 @@ int usb_cb_control_msg(USB_Setup_TypeDef *setup, uint8_t *resp, bool hardwired)
|
||||
// **** 0xdf: set unsafe mode
|
||||
case 0xdf:
|
||||
// you can only set this if you are in a non car safety mode
|
||||
if (safety_mode == SAFETY_SILENT || safety_mode == SAFETY_NOOUTPUT || safety_mode == SAFETY_ELM327) {
|
||||
if (current_safety_mode == SAFETY_SILENT ||
|
||||
current_safety_mode == SAFETY_NOOUTPUT ||
|
||||
current_safety_mode == SAFETY_ELM327) {
|
||||
unsafe_mode = setup->b.wValue.w;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user