1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00

STM32F411 fix to DCC period

This commit is contained in:
pmantoine
2022-08-09 12:28:15 +08:00
parent f56e3bec9e
commit c9612984e8
2 changed files with 13 additions and 13 deletions

View File

@@ -51,7 +51,7 @@ void DCCTimer::begin(INTERRUPT_CALLBACK callback) {
timer.pause();
timer.setPrescaleFactor(1);
// timer.setOverflow(CLOCK_CYCLES * 2);
timer.setOverflow(DCC_SIGNAL_TIME * 2, MICROSEC_FORMAT);
timer.setOverflow(DCC_SIGNAL_TIME, MICROSEC_FORMAT);
timer.attachInterrupt(Timer1_Handler);
timer.refresh();
timer.resume();