mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-17 06:29:15 +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
|
//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++) {
|
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].throttle=throttleChar;
|
||||||
myLocos[loco].cab=locoid;
|
myLocos[loco].cab=locoid;
|
||||||
myLocos[loco].functionMap=DCC::getFunctionMap(locoid);
|
myLocos[loco].functionMap=DCC::getFunctionMap(locoid);
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#define VERSION "4.2.7pre1"
|
#define VERSION "4.2.7pre1"
|
||||||
// 4.2.7 FIX: Static IP addr
|
// 4.2.7 FIX: Static IP addr
|
||||||
|
// FIX: Reuse WiThrottle list entries
|
||||||
// 4.2.6 FIX: Remove RAM thief
|
// 4.2.6 FIX: Remove RAM thief
|
||||||
// FIX: ADC port 8-15 fix
|
// FIX: ADC port 8-15 fix
|
||||||
// 4.2.5 Make GETFLASHW code more universal
|
// 4.2.5 Make GETFLASHW code more universal
|
||||||
|
Loading…
Reference in New Issue
Block a user