Skip to content

Commit bd21d2b

Browse files
authored
Update CurrentSense.cpp
1 parent 996f312 commit bd21d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/base_classes/CurrentSense.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ int CurrentSense::alignStepperDriver(float voltage, StepperDriver* stepper_drive
450450

451451
// phase B should be aligned
452452
// 1) we just need to verify that it has been measured
453-
if (fabs(c.a) < 0.1f && fabs(c.b) < 0.1f ){
454-
SIMPLEFOC_DEBUG("CS: Err too low current!");
453+
if (fabs(c.b) < 0.1f ){
454+
SIMPLEFOC_DEBUG("CS: Err too low current on B!");
455455
return 0; // measurement current too low
456456
}
457457
// 2) check if measured current a is positive and invert if not

0 commit comments

Comments
 (0)