diff --git a/src/hal/tmc2130.h b/src/hal/tmc2130.h index 2f57b55..437423c 100644 --- a/src/hal/tmc2130.h +++ b/src/hal/tmc2130.h @@ -111,7 +111,7 @@ public: /// Return SG state static inline bool Stall(const MotorParams ¶ms) { - return gpio::ReadPin(params.sgPin) == gpio::Level::high; + return gpio::ReadPin(params.sgPin) == gpio::Level::low; } /// Reads a driver register and updates the status flags