Fix stall detection polarity
parent
5f83667b22
commit
129a89cf07
|
|
@ -111,7 +111,7 @@ public:
|
||||||
|
|
||||||
/// Return SG state
|
/// Return SG state
|
||||||
static inline bool Stall(const MotorParams ¶ms) {
|
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
|
/// Reads a driver register and updates the status flags
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue