From 52759224132db07312fb56ae30e9e0d6bd46ad0f Mon Sep 17 00:00:00 2001 From: wocsor Date: Wed, 14 Jul 2021 15:19:30 -0400 Subject: [PATCH] hack to allow smartDSU to work on stock OP --- board/smart_dsu/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/smart_dsu/main.c b/board/smart_dsu/main.c index 531f6bd..bfe6cf2 100644 --- a/board/smart_dsu/main.c +++ b/board/smart_dsu/main.c @@ -233,6 +233,7 @@ bool send = 0; //------------- BUS 1 - PTCAN ------------// #define ACC_CTRL 0xF10 +#define ACC_CTRL_OP 0x343 bool enable_acc = 0; int acc_cmd = 0; @@ -282,6 +283,7 @@ void CAN1_RX0_IRQ_Handler(void) { } } break; + case ACC_CTRL_OP: // hack to allow the firmware to support stock OP case ACC_CTRL: // send this EXACTLY how ACC_CONTROL is sent for (int i=0; i<8; i++) {