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

Initial Track Manager code

This commit is contained in:
Asbelos
2022-02-22 01:27:27 +00:00
parent 3038f29dac
commit 8db937e985
3 changed files with 201 additions and 0 deletions

View File

@@ -37,6 +37,7 @@
#include "CommandDistributor.h"
#include "EEStore.h"
#include "DIAG.h"
#include "TrackManager.h"
#include <avr/wdt.h>
////////////////////////////////////////////////////////////////////////////////
@@ -483,6 +484,11 @@ void DCCEXParser::parse(Print *stream, byte *com, RingStream * ringStream)
return;
return;
case 'J': // < >
if (TrackManager::parseJ(stream, params, p))
return;
break;
case '#': // NUMBER OF LOCOSLOTS <#>
StringFormatter::send(stream, F("<# %d>\n"), MAX_LOCOS);
return;