mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-18 15:06:03 +01:00
make WDT time longer to work around bootloader bug
This commit is contained in:
parent
86291cbec4
commit
2172d2e175
@ -185,8 +185,10 @@ int DCCTimer::freeMemory() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DCCTimer::reset() {
|
void DCCTimer::reset() {
|
||||||
wdt_enable( WDTO_15MS); // set Arduino watchdog timer for 15ms
|
// 250ms chosen to circumwent bootloader bug which
|
||||||
delay(50); // wait for it to happen
|
// hangs at too short timepout (like 15ms)
|
||||||
|
wdt_enable( WDTO_250MS); // set Arduino watchdog timer for 250ms
|
||||||
|
delay(500); // wait for it to happen
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user