Skip to content

Commit a373714

Browse files
author
Richard Unger
committed
fix initialization error for StepperMotors
1 parent 5ecb58b commit a373714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StepperMotor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ int StepperMotor::alignSensor() {
134134
SIMPLEFOC_DEBUG("MOT: Align sensor.");
135135

136136
// if unknown natural direction
137-
if(!_isset(sensor_direction)){
137+
if(sensor_direction == Direction::UNKNOWN){
138138
// check if sensor needs zero search
139139
if(sensor->needsSearch()) exit_flag = absoluteZeroSearch();
140140
// stop init if not found index

0 commit comments

Comments
 (0)