diff --git a/firmware/can.cpp b/firmware/can.cpp index b87fa1f..470b939 100644 --- a/firmware/can.cpp +++ b/firmware/can.cpp @@ -25,7 +25,7 @@ void CanTxThread(void*) SendCanForChannel(ch); } - chThdSleepMilliseconds(10); + chThdSleepMilliseconds(WBO_TX_PERIOD_MS); } } diff --git a/for_rusefi/wideband_can.h b/for_rusefi/wideband_can.h index a454a4b..01f7937 100644 --- a/for_rusefi/wideband_can.h +++ b/for_rusefi/wideband_can.h @@ -26,6 +26,9 @@ #define WB_MGS_ECU_STATUS 0xEF5'0000 #define WB_DATA_BASE_ADDR 0x190 +// we transmit every 10ms +#define WBO_TX_PERIOD_MS 10 + namespace wbo { enum class Fault : uint8_t