diff --git a/include/motor-control/core/tasks/motion_controller_task.hpp b/include/motor-control/core/tasks/motion_controller_task.hpp index ee98c6b5f..df738b2fc 100644 --- a/include/motor-control/core/tasks/motion_controller_task.hpp +++ b/include/motor-control/core/tasks/motion_controller_task.hpp @@ -216,8 +216,7 @@ class MotionControllerTask { // also create top level query msg void run_diag0_interrupt(void) { if (!driver_error_handled()) { - sent = true; - // static_cast(queue.try_write_isr(can::messages::MotorDriverErrorEncountered{.message_index = 0})); + static_cast(queue.try_write_isr(can::messages::MotorDriverErrorEncountered{.message_index = 0})); } } @@ -226,7 +225,6 @@ class MotionControllerTask { private: QueueType& queue; std::atomic driver_error_handled_flag = false; - bool sent = false; }; /**