1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-04-22 21:11:19 +02:00

Compare commits

..

4 Commits

Author SHA1 Message Date
Kcsmith0708
56a5c8b74e
Merge 2c133da14040d63993a71bd82ded11560255d646 into 2172d2e1754fd9dbe87cf2c8c80a3ddab0bf9185 2024-05-12 11:32:46 -04:00
Harald Barth
2172d2e175 make WDT time longer to work around bootloader bug 2024-05-11 08:46:25 +02:00
Harald Barth
86291cbec4 signal id of 0 does not work 2024-05-11 07:45:28 +02:00
Harald Barth
66791b19f5 remove stupid comment 2024-05-11 07:43:24 +02:00
2 changed files with 5 additions and 3 deletions

View File

@ -185,8 +185,10 @@ int DCCTimer::freeMemory() {
}
void DCCTimer::reset() {
wdt_enable( WDTO_15MS); // set Arduino watchdog timer for 15ms
delay(50); // wait for the prescaller time to expire
// 250ms chosen to circumwent bootloader bug which
// hangs at too short timepout (like 15ms)
wdt_enable( WDTO_250MS); // set Arduino watchdog timer for 250ms
delay(500); // wait for it to happen
}

View File

@ -1145,7 +1145,7 @@ void RMFT2::kill(const FSH * reason, int operand) {
int16_t RMFT2::getSignalSlot(int16_t id) {
if (id >= 0) {
if (id > 0) {
int sigslot = 0;
int16_t sighandle = 0;
// Trundle down the signal list until we reach the end