1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-04-23 05:21:20 +02:00

Compare commits

..

1 Commits

2 changed files with 3 additions and 5 deletions

View File

@ -185,10 +185,8 @@ int DCCTimer::freeMemory() {
} }
void DCCTimer::reset() { void DCCTimer::reset() {
// 250ms chosen to circumwent bootloader bug which wdt_enable( WDTO_15MS); // set Arduino watchdog timer for 15ms
// hangs at too short timepout (like 15ms) delay(50); // wait for the prescaller time to expire
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) { int16_t RMFT2::getSignalSlot(int16_t id) {
if (id > 0) { if (id >= 0) {
int sigslot = 0; int sigslot = 0;
int16_t sighandle = 0; int16_t sighandle = 0;
// Trundle down the signal list until we reach the end // Trundle down the signal list until we reach the end