diff --git a/firmware/controllers/can/can.h b/firmware/controllers/can/can.h index 69819b3299..4c2d6e0c94 100644 --- a/firmware/controllers/can/can.h +++ b/firmware/controllers/can/can.h @@ -53,7 +53,7 @@ void processCanRxMessage(const size_t busIndex, const CANRxFrame& msg, efitick_t void registerCanListener(CanListener& listener); void registerCanSensor(CanSensorBase& sensor); -class CanWrite final : public PeriodicController<512> { +class CanWrite final : public PeriodicController { public: CanWrite(); void PeriodicTask(efitick_t nowNt) override; diff --git a/firmware/controllers/can/can_tx.cpp b/firmware/controllers/can/can_tx.cpp index f833fb8dbc..24ed1a3e39 100644 --- a/firmware/controllers/can/can_tx.cpp +++ b/firmware/controllers/can/can_tx.cpp @@ -30,6 +30,7 @@ PUBLIC_API_WEAK bool boardEnableSendWidebandInfo() { return true; } static uint16_t m_cycleCount = 0; +// this is invoked at CAN_CYCLE_FREQ frequency void CanWrite::PeriodicTask(efitick_t nowNt) { UNUSED(nowNt); CanCycle cycle(m_cycleCount);