Skip to content

Commit f6362e7

Browse files
committed
small fixes
1 parent 4395c22 commit f6362e7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/BLDCMotor.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,7 @@ int BLDCMotor::alignSensor() {
290290
zero_electric_angle = electricalAngle();
291291
//zero_electric_angle = _normalizeAngle(_electricalAngle(sensor_direction*sensor->getAngle(), pole_pairs));
292292
_delay(20);
293-
if(monitor_port){
294-
SIMPLEFOC_DEBUG("MOT: Zero elec. angle: ", zero_electric_angle);
295-
}
293+
SIMPLEFOC_DEBUG("MOT: Zero elec. angle: ", zero_electric_angle);
296294
// stop everything
297295
setPhaseVoltage(0, 0, 0);
298296
_delay(200);

src/sensors/Encoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class Encoder: public Sensor{
6868
/**
6969
* returns 0 if it does need search for absolute zero
7070
* 0 - encoder without index
71-
* 1 - ecoder with index
71+
* 1 - encoder with index
7272
*/
7373
int needsSearch() override;
7474

0 commit comments

Comments
 (0)