From b8afae2055ae5ca1d006d8037eefcd2d072289a4 Mon Sep 17 00:00:00 2001 From: pmoegenburg Date: Thu, 12 Oct 2023 16:58:02 -0400 Subject: [PATCH] debug update --- include/motor-control/core/tasks/motion_controller_task.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }; /**