diff --git a/Firmware/MotorControl/axis.cpp b/Firmware/MotorControl/axis.cpp index b68ef01b..1d416e68 100644 --- a/Firmware/MotorControl/axis.cpp +++ b/Firmware/MotorControl/axis.cpp @@ -202,9 +202,7 @@ void Axis::watchdog_feed() { // @brief Check the watchdog timer for expiration. Also sets the watchdog error bit if expired. bool Axis::watchdog_check() { - // reset value = 0 means watchdog disabled. if (!config_.enable_watchdog) return true; - if (get_watchdog_reset() == 0) return true; // explicit check here to ensure that we don't underflow back to UINT32_MAX if (watchdog_current_value_ > 0) { diff --git a/Firmware/MotorControl/axis.hpp b/Firmware/MotorControl/axis.hpp index 5f397df9..020cd12a 100644 --- a/Firmware/MotorControl/axis.hpp +++ b/Firmware/MotorControl/axis.hpp @@ -76,7 +76,7 @@ public: float counts_per_step = 2.0f; - float watchdog_timeout = 0.0f; // [s] (0 disables watchdog) + float watchdog_timeout = 0.0f; // [s] bool enable_watchdog = false; // Defaults loaded from hw_config in load_configuration in main.cpp