From 37f3b51a2b80f0d1697d6c47d8b4a8c7da43ea91 Mon Sep 17 00:00:00 2001 From: Alexandre Bourdiol Date: Tue, 1 Dec 2020 17:58:50 +0100 Subject: [PATCH] HardwareTimer: remove use of TIMER_OUTPUT_COMPARE After implementation of: https://github.com/stm32duino/Arduino_Core_STM32/pull/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 --- .../HardwareTimer_OutputInput_test.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/NonReg/HardwareTimer/HardwareTimer_OutputInput_test/HardwareTimer_OutputInput_test.ino b/examples/NonReg/HardwareTimer/HardwareTimer_OutputInput_test/HardwareTimer_OutputInput_test.ino index ae0ddf6..772de58 100644 --- a/examples/NonReg/HardwareTimer/HardwareTimer_OutputInput_test/HardwareTimer_OutputInput_test.ino +++ b/examples/NonReg/HardwareTimer/HardwareTimer_OutputInput_test/HardwareTimer_OutputInput_test.ino @@ -453,7 +453,7 @@ void loop() test_step++; MyTim_output->pauseChannel(Output1_channel); - MyTim_output->setMode(Output1_channel, TIMER_OUTPUT_COMPARE); + MyTim_output->setMode(Output1_channel, TIMER_DISABLED); MyTim_output->resumeChannel(Output1_channel); Verify_output(1, 0, 0); // in PWM2, output is the complementary of PW1 Verify_output(2, OUTPUT_FREQUENCY, OUTPUT_DUTY2);