1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-28 02:26:13 +01:00

Compare commits

..

1 Commits

Author SHA1 Message Date
Kcsmith0708
9d52e9bb50
Merge 2afb5f3d6c into 102d6078a7 2023-11-16 05:20:41 -07:00
7 changed files with 6 additions and 24 deletions

View File

@ -115,7 +115,6 @@ Once a new OPCODE is decided upon, update this list.
#include "DCCTimer.h" #include "DCCTimer.h"
#include "EXRAIL2.h" #include "EXRAIL2.h"
#include "Turntables.h" #include "Turntables.h"
#include "version.h"
// This macro can't be created easily as a portable function because the // This macro can't be created easily as a portable function because the
// flashlist requires a far pointer for high flash access. // flashlist requires a far pointer for high flash access.
@ -842,9 +841,6 @@ void DCCEXParser::parseOne(Print *stream, byte *com, RingStream * ringStream)
case '@': // JMRI saying "give me virtual LCD msgs" case '@': // JMRI saying "give me virtual LCD msgs"
CommandDistributor::setVirtualLCDSerial(stream); CommandDistributor::setVirtualLCDSerial(stream);
StringFormatter::send(stream,
F("<@ 0 0 \"DCC-EX v" VERSION "\">\n"
"<@ 0 1 \"Lic GPLv3\">\n"));
return; return;
default: //anything else will diagnose and drop out to <X> default: //anything else will diagnose and drop out to <X>

View File

@ -932,9 +932,6 @@ void RMFT2::loop2() {
case OPCODE_ROUTE_ACTIVE: case OPCODE_ROUTE_ACTIVE:
manageRouteState(operand,1); manageRouteState(operand,1);
break; break;
case OPCODE_ROUTE_DISABLED:
manageRouteState(operand,4);
break;
case OPCODE_ROUTE: case OPCODE_ROUTE:
case OPCODE_AUTOMATION: case OPCODE_AUTOMATION:

View File

@ -69,7 +69,6 @@ enum OPCODE : byte {OPCODE_THROW,OPCODE_CLOSE,
OPCODE_LCC,OPCODE_LCCX,OPCODE_ONLCC, OPCODE_LCC,OPCODE_LCCX,OPCODE_ONLCC,
OPCODE_ONOVERLOAD, OPCODE_ONOVERLOAD,
OPCODE_ROUTE_ACTIVE,OPCODE_ROUTE_INACTIVE,OPCODE_ROUTE_HIDDEN, OPCODE_ROUTE_ACTIVE,OPCODE_ROUTE_INACTIVE,OPCODE_ROUTE_HIDDEN,
OPCODE_ROUTE_DISABLED,
// OPcodes below this point are skip-nesting IF operations // OPcodes below this point are skip-nesting IF operations
// placed here so that they may be skipped as a group // placed here so that they may be skipped as a group

View File

@ -129,7 +129,6 @@
#undef ROUTE_ACTIVE #undef ROUTE_ACTIVE
#undef ROUTE_INACTIVE #undef ROUTE_INACTIVE
#undef ROUTE_HIDDEN #undef ROUTE_HIDDEN
#undef ROUTE_DISABLED
#undef ROUTE_CAPTION #undef ROUTE_CAPTION
#undef SENDLOCO #undef SENDLOCO
#undef SEQUENCE #undef SEQUENCE
@ -275,7 +274,6 @@
#define ROUTE_ACTIVE(id) #define ROUTE_ACTIVE(id)
#define ROUTE_INACTIVE(id) #define ROUTE_INACTIVE(id)
#define ROUTE_HIDDEN(id) #define ROUTE_HIDDEN(id)
#define ROUTE_DISABLED(id)
#define ROUTE_CAPTION(id,caption) #define ROUTE_CAPTION(id,caption)
#define SENDLOCO(cab,route) #define SENDLOCO(cab,route)
#define SEQUENCE(id) #define SEQUENCE(id)

View File

@ -108,8 +108,6 @@ void exrailHalSetup() {
#define ROUTE_INACTIVE(id) | FEATURE_ROUTESTATE #define ROUTE_INACTIVE(id) | FEATURE_ROUTESTATE
#undef ROUTE_HIDDEN #undef ROUTE_HIDDEN
#define ROUTE_HIDDEN(id) | FEATURE_ROUTESTATE #define ROUTE_HIDDEN(id) | FEATURE_ROUTESTATE
#undef ROUTE_DISABLED
#define ROUTE_DISABLED(id) | FEATURE_ROUTESTATE
#undef ROUTE_CAPTION #undef ROUTE_CAPTION
#define ROUTE_CAPTION(id,caption) | FEATURE_ROUTESTATE #define ROUTE_CAPTION(id,caption) | FEATURE_ROUTESTATE
@ -459,7 +457,6 @@ int RMFT2::onLCCLookup[RMFT2::countLCCLookup];
#define ROUTE_ACTIVE(id) OPCODE_ROUTE_ACTIVE,V(id), #define ROUTE_ACTIVE(id) OPCODE_ROUTE_ACTIVE,V(id),
#define ROUTE_INACTIVE(id) OPCODE_ROUTE_INACTIVE,V(id), #define ROUTE_INACTIVE(id) OPCODE_ROUTE_INACTIVE,V(id),
#define ROUTE_HIDDEN(id) OPCODE_ROUTE_HIDDEN,V(id), #define ROUTE_HIDDEN(id) OPCODE_ROUTE_HIDDEN,V(id),
#define ROUTE_DISABLED(id) OPCODE_ROUTE_DISABLED,V(id),
#define ROUTE_CAPTION(id,caption) PRINT(caption) #define ROUTE_CAPTION(id,caption) PRINT(caption)
#define SENDLOCO(cab,route) OPCODE_SENDLOCO,V(cab),OPCODE_PAD,V(route), #define SENDLOCO(cab,route) OPCODE_SENDLOCO,V(cab),OPCODE_PAD,V(route),
#define SEQUENCE(id) OPCODE_SEQUENCE, V(id), #define SEQUENCE(id) OPCODE_SEQUENCE, V(id),

View File

@ -39,18 +39,15 @@ void StringFormatter::diag( const FSH* input...) {
void StringFormatter::lcd(byte row, const FSH* input...) { void StringFormatter::lcd(byte row, const FSH* input...) {
va_list args; va_list args;
Print * virtualLCD=CommandDistributor::getVirtualLCDSerial(0,row);
// Issue the LCD as a diag first // Issue the LCD as a diag first
// Unless the same serial is asking for the virtual @ respomnse send(&USB_SERIAL,F("<* LCD%d:"),row);
if (virtualLCD!=&USB_SERIAL) { va_start(args, input);
send(&USB_SERIAL,F("<* LCD%d:"),row); send2(&USB_SERIAL,input,args);
va_start(args, input); send(&USB_SERIAL,F(" *>\n"));
send2(&USB_SERIAL,input,args);
send(&USB_SERIAL,F(" *>\n"));
}
// send to virtual LCD collector (if any) // send to virtual LCD collector (if any)
Print * virtualLCD=CommandDistributor::getVirtualLCDSerial(0,row);
if (virtualLCD) { if (virtualLCD) {
va_start(args, input); va_start(args, input);
send2(virtualLCD,input,args); send2(virtualLCD,input,args);

View File

@ -4,8 +4,6 @@
#include "StringFormatter.h" #include "StringFormatter.h"
#define VERSION "5.2.3" #define VERSION "5.2.3"
// 5.2.4 - LCD macro will not do diag if that duplicates @ to same target.
// - Added ROUTE_DISABLED macro in EXRAIL
// 5.2.3 - Bugfix: Catch stange input to parser // 5.2.3 - Bugfix: Catch stange input to parser
// 5.2.2 - Added option to allow MAX_CHARACTER_ROWS to be defined in config.h // 5.2.2 - Added option to allow MAX_CHARACTER_ROWS to be defined in config.h
// 5.2.1 - Trackmanager rework for simpler structure // 5.2.1 - Trackmanager rework for simpler structure