1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00

Start on callback

This commit is contained in:
peteGSX
2023-08-30 19:48:30 +10:00
parent dbf053858b
commit a0c1ad182c
6 changed files with 20 additions and 7 deletions

View File

@@ -1226,3 +1226,8 @@ void DCCEXParser::callback_Wloco(int16_t result)
StringFormatter::send(getAsyncReplyStream(), F("<w %d>\n"), result);
commitAsyncReplyStream();
}
void DCCEXParser::callback_Imoving(bool moving) {
if (!moving) StringFormatter::send(getAsyncReplyStream(), F("<i>"));
commitAsyncReplyStream();
}