From edefd638f19f8e122cbcb80cb7f5cbbd725b77c7 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Tue, 17 Aug 2021 18:32:11 +0100 Subject: [PATCH] Handoff immediately after acquire --- WiThrottle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/WiThrottle.cpp b/WiThrottle.cpp index bd34c12..c4b04b9 100644 --- a/WiThrottle.cpp +++ b/WiThrottle.cpp @@ -263,6 +263,7 @@ void WiThrottle::multithrottle(RingStream * stream, byte * cmd){ if (myLocos[loco].throttle=='\0') { myLocos[loco].throttle=throttleChar; myLocos[loco].cab=locoid; + mostRecentCab=locoid; StringFormatter::send(stream, F("M%c+%c%d<;>\n"), throttleChar, cmd[3] ,locoid); //tell client to add loco //Get known Fn states from DCC for(int fKey=0; fKey<=28; fKey++) {