1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00

estop all locos in list, even last one

This commit is contained in:
Harald Barth 2023-05-05 16:14:44 +02:00
parent 6781e44fdd
commit 6d802f3a73
2 changed files with 2 additions and 2 deletions

View File

@ -693,7 +693,7 @@ void DCC::updateLocoReminder(int loco, byte speedCode) {
if (loco==0) { if (loco==0) {
// broadcast stop/estop but dont change direction // broadcast stop/estop but dont change direction
for (int reg = 0; reg < highestUsedReg; reg++) { for (int reg = 0; reg <= highestUsedReg; reg++) {
if (speedTable[reg].loco==0) continue; if (speedTable[reg].loco==0) continue;
byte newspeed=(speedTable[reg].speedCode & 0x80) | (speedCode & 0x7f); byte newspeed=(speedTable[reg].speedCode & 0x80) | (speedCode & 0x7f);
if (speedTable[reg].speedCode != newspeed) { if (speedTable[reg].speedCode != newspeed) {

View File

@ -1 +1 @@
#define GITHUB_SHA "devel-202304172140Z" #define GITHUB_SHA "devel-202305051413Z"