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

reuse WiThrottle list entries

This commit is contained in:
Harald Barth 2022-12-05 15:52:23 +01:00
parent cb1fc75077
commit 13368c319a
3 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
#define GITHUB_SHA "devel-202212041810Z"
#define GITHUB_SHA "devel-202212051450Z"

View File

@ -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);

View File

@ -6,6 +6,7 @@
#define VERSION "4.2.7pre1"
// 4.2.7 FIX: Static IP addr
// FIX: Reuse WiThrottle list entries
// 4.2.6 FIX: Remove RAM thief
// FIX: ADC port 8-15 fix
// 4.2.5 Make GETFLASHW code more universal