Skip to content

Commit efa05b5

Browse files
author
DEGoodmanWilson
committed
Bugfix! H/t to Nicolas Meunier.
1 parent b27365c commit efa05b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: DCCPacketScheduler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ bool DCCPacketScheduler::setSpeed28(uint16_t address, uint8_t address_kind, int8
186186
}
187187
// Serial.println(speed);
188188
// Serial.println(dir);
189-
if(speed == 0) //estop!
189+
if(new_speed == 0) //estop!
190190
return eStop(address, address_kind);//speed_data_uint8_ts[0] |= 0x01; //estop
191191
else if (abs_speed == 1) //regular stop!
192192
speed_data_uint8_ts[0] |= 0x00; //stop

0 commit comments

Comments
 (0)