From 576288ba9e439c9b429b6833f52170bb0e1bb34b Mon Sep 17 00:00:00 2001 From: Asbelos Date: Mon, 12 Oct 2020 22:18:09 +0100 Subject: [PATCH] DIAG LCD --- StringFormatter.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/StringFormatter.cpp b/StringFormatter.cpp index 261794a..2ecefec 100644 --- a/StringFormatter.cpp +++ b/StringFormatter.cpp @@ -47,9 +47,16 @@ void StringFormatter::diag( 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; LCDDisplay::lcdDisplay->setRow(row); - va_list args; va_start(args, input); send2(LCDDisplay::lcdDisplay,input,args); }