From ae77c5b7d6bcd9847b2abc27d177ad2b8d3272b8 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Tue, 13 Oct 2020 18:01:11 +0100 Subject: [PATCH] Send all functions --- WiThrottle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WiThrottle.cpp b/WiThrottle.cpp index a0ec254..ac503a0 100644 --- a/WiThrottle.cpp +++ b/WiThrottle.cpp @@ -232,7 +232,7 @@ void WiThrottle::multithrottle(Print & stream, byte * cmd){ myLocos[loco].cab=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<=12; fKey++) { + for(int fKey=0; fKey<=28; fKey++) { int fstate=DCC::getFn(locoid,fKey); if (fstate>=0) StringFormatter::send(stream,F("M%cA%c<;>F%d%d\n"),throttleChar,cmd[3],fstate,fKey); }