We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 849a8be commit 757493cCopy full SHA for 757493c
cores/arduino/HardwareTimer.cpp
@@ -158,7 +158,11 @@ void HardwareTimer::resume(void)
158
if (callbacks[0] != NULL) {
159
__HAL_TIM_CLEAR_FLAG(&(_timerObj.handle), TIM_FLAG_UPDATE);
160
__HAL_TIM_ENABLE_IT(&(_timerObj.handle), TIM_IT_UPDATE);
161
+
162
+ // Start timer in Time base mode. Required when there is no channel used but only update interrupt.
163
+ HAL_TIM_Base_Start(&(_timerObj.handle));
164
}
165
166
// Resume all channels
167
resumeChannel(1);
168
resumeChannel(2);
0 commit comments