Skip to content

Commit d518987

Browse files
committed
pwm frequency not set initially
1 parent 63366cd commit d518987

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/drivers/BLDCDriver6PWM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ BLDCDriver6PWM::BLDCDriver6PWM(int phA_h,int phA_l,int phB_h,int phB_l,int phC_h
1515
// default power-supply value
1616
voltage_power_supply = DEF_POWER_SUPPLY;
1717
voltage_limit = NOT_SET;
18+
pwm_frequency = NOT_SET;
1819

1920
// dead zone initial - 2%
2021
dead_zone = 0.02f;

src/drivers/StepperDriver2PWM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ StepperDriver2PWM::StepperDriver2PWM(int _pwm1, int _dir1, int _pwm2, int _dir2,
3636
// default power-supply value
3737
voltage_power_supply = DEF_POWER_SUPPLY;
3838
voltage_limit = NOT_SET;
39+
pwm_frequency = NOT_SET;
3940

4041
}
4142

src/drivers/StepperDriver4PWM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ StepperDriver4PWM::StepperDriver4PWM(int ph1A,int ph1B,int ph2A,int ph2B,int en1
1414
// default power-supply value
1515
voltage_power_supply = DEF_POWER_SUPPLY;
1616
voltage_limit = NOT_SET;
17+
pwm_frequency = NOT_SET;
1718

1819
}
1920

0 commit comments

Comments
 (0)