Skip to content

Commit a71796f

Browse files
ABOSTMfpistm
authored andcommitted
HardwareTimer: remove use of TIMER_OUTPUT_COMPARE
After implementation of: stm32duino/Arduino_Core_STM32#1247 it is better to use TIMER_DISABLED instead of TIMER_OUTPUT_COMPARE Even if TIMER_OUTPUT_COMPARE has been kept for compatibility reason and is still working. Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
1 parent b4aff56 commit a71796f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/NonReg/HardwareTimer/HardwareTimer_OutputInput_test/HardwareTimer_OutputInput_test.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ void loop()
453453
test_step++;
454454

455455
MyTim_output->pauseChannel(Output1_channel);
456-
MyTim_output->setMode(Output1_channel, TIMER_OUTPUT_COMPARE);
456+
MyTim_output->setMode(Output1_channel, TIMER_DISABLED);
457457
MyTim_output->resumeChannel(Output1_channel);
458458
Verify_output(1, 0, 0); // in PWM2, output is the complementary of PW1
459459
Verify_output(2, OUTPUT_FREQUENCY, OUTPUT_DUTY2);

0 commit comments

Comments
 (0)