We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ecb58b commit a373714Copy full SHA for a373714
src/StepperMotor.cpp
@@ -134,7 +134,7 @@ int StepperMotor::alignSensor() {
134
SIMPLEFOC_DEBUG("MOT: Align sensor.");
135
136
// if unknown natural direction
137
- if(!_isset(sensor_direction)){
+ if(sensor_direction == Direction::UNKNOWN){
138
// check if sensor needs zero search
139
if(sensor->needsSearch()) exit_flag = absoluteZeroSearch();
140
// stop init if not found index
0 commit comments