Skip to content

Commit d69c715

Browse files
ABOSTMfpistm
authored andcommitted
HardwareTimer: fix typo
1 parent 835be18 commit d69c715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Peripherals/HardwareTimer/PWM_FullConfiguration/PWM_FullConfiguration.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void setup()
5252

5353
MyTim->setMode(channel, TIMER_OUTPUT_COMPARE_PWM1, pin);
5454
// MyTim->setPrescaleFactor(8); // Due to setOverflow with MICROSEC_FORMAT, prescaler will be computed automatically based on timer input clock
55-
MyTim->setOverflow(100000, MICROSEC_FORMAT); // 10000 microseconds = 10 milliseconds
55+
MyTim->setOverflow(100000, MICROSEC_FORMAT); // 100000 microseconds = 100 milliseconds
5656
MyTim->setCaptureCompare(channel, 50, PERCENT_COMPARE_FORMAT); // 50%
5757
MyTim->attachInterrupt(Update_IT_callback);
5858
MyTim->attachInterrupt(channel, Compare_IT_callback);

0 commit comments

Comments
 (0)