diff --git a/CommandDistributor.cpp b/CommandDistributor.cpp index 1f11e28..aef024b 100644 --- a/CommandDistributor.cpp +++ b/CommandDistributor.cpp @@ -330,7 +330,7 @@ void CommandDistributor::setVirtualLCDSerial(Print * stream) { virtualLCDSerial=stream; } -Print* CommandDistributor::virtualLCDSerial=nullptr; +Print* CommandDistributor::virtualLCDSerial=&USB_SERIAL; byte CommandDistributor::virtualLCDClient=0xFF; byte CommandDistributor::rememberVLCDClient=0; diff --git a/CommandStation-EX.ino b/CommandStation-EX.ino index 77e8f40..205babf 100644 --- a/CommandStation-EX.ino +++ b/CommandStation-EX.ino @@ -87,7 +87,7 @@ void setup() DISPLAY_START ( // This block is still executed for DIAGS if display not in use - LCD(0,F("DCC-EX v%S"),F(VERSION)); + LCD(0,F("DCC-EX v" VERSION)); LCD(1,F("Lic GPLv3")); ); diff --git a/Display_Implementation.h b/Display_Implementation.h index ca19bd7..6a3c995 100644 --- a/Display_Implementation.h +++ b/Display_Implementation.h @@ -54,7 +54,9 @@ xxx; \ t->refresh();} #else - #define DISPLAY_START(xxx) {} + #define DISPLAY_START(xxx) { \ + xxx; \ + } #endif #endif // LCD_Implementation_h diff --git a/myHalKCS.cpp b/myHalKCS.cpp new file mode 100644 index 0000000..a330ae7 --- /dev/null +++ b/myHalKCS.cpp @@ -0,0 +1 @@ +// If you are planning to use multiple mux devices, perhaps it is good to use the 3-position syntax for all.