From 9df9e8c93499c4ef303368e0e68217bde3bb60b6 Mon Sep 17 00:00:00 2001 From: mstevetodd Date: Fri, 10 Nov 2023 11:57:48 -0500 Subject: [PATCH] support leading/trailing spaces in LCD message text --- StringFormatter.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/StringFormatter.cpp b/StringFormatter.cpp index cd74030..4ed597e 100644 --- a/StringFormatter.cpp +++ b/StringFormatter.cpp @@ -39,11 +39,11 @@ void StringFormatter::diag( const FSH* input...) { void StringFormatter::lcd(byte row, const FSH* input...) { va_list args; - // Copy to serial client for display 0 <@ display# line# message> - send(&USB_SERIAL,F("<@ 0 %d "),row); + // Copy to serial client for display 0 <@ display# line# "message"> + send(&USB_SERIAL,F("<@ 0 %d \""),row); va_start(args, input); send2(&USB_SERIAL,input,args); - send(&USB_SERIAL,F(">\n")); + send(&USB_SERIAL,F("\">\n")); DisplayInterface::setRow(row); va_start(args, input); @@ -53,11 +53,11 @@ void StringFormatter::lcd(byte row, const FSH* input...) { void StringFormatter::lcd2(uint8_t display, byte row, const FSH* input...) { va_list args; - // Copy to serial client <@ display# line# message> - send(&USB_SERIAL,F("<@ %d %d "),display,row); + // Copy to serial client <@ display# line# "message"> + send(&USB_SERIAL,F("<@ %d %d \""),display,row); va_start(args, input); send2(&USB_SERIAL,input,args); - send(&USB_SERIAL,F(">\n")); + send(&USB_SERIAL,F("\">\n")); DisplayInterface::setRow(display, row); va_start(args, input);