mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-01-11 21:31:02 +01:00
DIAG LCD
This commit is contained in:
parent
0e3046e24f
commit
576288ba9e
@ -47,9 +47,16 @@ void StringFormatter::diag( const __FlashStringHelper* input...) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void StringFormatter::lcd(byte row, const __FlashStringHelper* input...) {
|
void StringFormatter::lcd(byte row, const __FlashStringHelper* input...) {
|
||||||
|
va_list args;
|
||||||
|
|
||||||
|
// Issue the LCD as a diag first
|
||||||
|
diag(F("\nLCD%d:"),row);
|
||||||
|
va_start(args, input);
|
||||||
|
send2(diagSerial,input,args);
|
||||||
|
diag(F("\n"));
|
||||||
|
|
||||||
if (!LCDDisplay::lcdDisplay) return;
|
if (!LCDDisplay::lcdDisplay) return;
|
||||||
LCDDisplay::lcdDisplay->setRow(row);
|
LCDDisplay::lcdDisplay->setRow(row);
|
||||||
va_list args;
|
|
||||||
va_start(args, input);
|
va_start(args, input);
|
||||||
send2(LCDDisplay::lcdDisplay,input,args);
|
send2(LCDDisplay::lcdDisplay,input,args);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user