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

Command Filter and some extra APIs.

This commit is contained in:
Asbelos
2020-06-18 19:36:37 +01:00
parent ffea04a499
commit 5872659ff2
5 changed files with 42 additions and 6 deletions

View File

@@ -234,6 +234,14 @@ void DCC::getLocoId(ACK_CALLBACK callback) {
ackManagerSetup(0,0, LOCO_ID_PROG, callback);
}
void DCC::forgetLoco(int cab) { // removes any speed reminders for this loco
for (int i=0;i<MAX_LOCOS;i++) if (speedTable[i].loco=cab) speedTable[i].loco=0;
}
void DCC::forgetAllLocos() { // removes all speed reminders
for (int i=0;i<MAX_LOCOS;i++) speedTable[i].loco=0;
}
void DCC::loop() {
DCCWaveform::loop(); // power overload checks
ackManagerLoop();