Skip to content

Commit

Permalink
fix initialization error for StepperMotors
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Unger committed Sep 26, 2023
1 parent 5ecb58b commit a373714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StepperMotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ int StepperMotor::alignSensor() {
SIMPLEFOC_DEBUG("MOT: Align sensor.");

// if unknown natural direction
if(!_isset(sensor_direction)){
if(sensor_direction == Direction::UNKNOWN){
// check if sensor needs zero search
if(sensor->needsSearch()) exit_flag = absoluteZeroSearch();
// stop init if not found index
Expand Down

0 comments on commit a373714

Please sign in to comment.