From 4450dbe4dda85eb184c69880b7b127a192082612 Mon Sep 17 00:00:00 2001 From: RoboMagus <68224306+RoboMagus@users.noreply.github.com> Date: Wed, 25 Jan 2023 10:00:39 +0100 Subject: [PATCH] Update serial echo macro to print from PGM --- Firmware/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index c5ef4f5b6..a9804821b 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -6472,7 +6472,7 @@ Sigma_Exit: - `String` - Message string. If omitted, a blank line will be sent. */ case 118: { - bool hasE, hasA = false; + bool hasE = false, hasA = false; char *p = strchr_pointer; for (uint8_t i = 2; i--;) { @@ -6487,7 +6487,7 @@ Sigma_Exit: } if (hasE) SERIAL_ECHO_START; - if (hasA) SERIAL_ECHO("//"); + if (hasA) SERIAL_ECHOPGM("//"); SERIAL_ECHOLN(p); }