mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-26 17:46:14 +01:00
reuse WiThrottle list entries
This commit is contained in:
parent
cb1fc75077
commit
13368c319a
|
@ -1 +1 @@
|
|||
#define GITHUB_SHA "devel-202212041810Z"
|
||||
#define GITHUB_SHA "devel-202212051450Z"
|
||||
|
|
|
@ -378,7 +378,7 @@ void WiThrottle::multithrottle(RingStream * stream, byte * cmd){
|
|||
}
|
||||
//use first empty "slot" on this client's list, will be added to DCC registration list
|
||||
for (int loco=0;loco<MAX_MY_LOCO;loco++) {
|
||||
if (myLocos[loco].throttle=='\0') {
|
||||
if (myLocos[loco].throttle=='\0' || myLocos[loco].cab == locoid) {
|
||||
myLocos[loco].throttle=throttleChar;
|
||||
myLocos[loco].cab=locoid;
|
||||
myLocos[loco].functionMap=DCC::getFunctionMap(locoid);
|
||||
|
|
Loading…
Reference in New Issue
Block a user