mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-06-19 22:05:24 +02:00
Compare commits
No commits in common. "2172d2e1754fd9dbe87cf2c8c80a3ddab0bf9185" and "6689a1d35fc2927f0e5aa1da99525cc8b2b0bf82" have entirely different histories.
2172d2e175
...
6689a1d35f
@ -185,10 +185,8 @@ int DCCTimer::freeMemory() {
|
||||
}
|
||||
|
||||
void DCCTimer::reset() {
|
||||
// 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
|
||||
wdt_enable( WDTO_15MS); // set Arduino watchdog timer for 15ms
|
||||
delay(50); // wait for the prescaller time to expire
|
||||
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user