We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e9d47d + cfb50b0 commit 57e532fCopy full SHA for 57e532f
src/timer/stm32/TimerField.h
@@ -72,8 +72,7 @@ TimerField::TimerField(TeensyStep::TF_Handler *_handler) :
72
void TimerField::stepTimerStart()
73
{
74
stepTimer.resume();
75
- // force reload of all timer's registers here saves 1.2ms in startup time
76
- // https://github.com/stm32duino/wiki/wiki/HardwareTimer-library
+ // Force update on the step timer registers as it might be slow(>50ms sometimes) to start otherwise.
77
stepTimer.refresh();
78
stepTimerRunning = true;
79
}
@@ -109,6 +108,9 @@ void TimerField::setStepFrequency(unsigned f)
109
108
110
bool TimerField::begin()
111
+ stepTimer.setPreloadEnable(false);
112
+ accTimer.setPreloadEnable(false);
113
+ pulseTimer.setPreloadEnable(false);
114
return true;
115
116
0 commit comments