From 998ed87f2568a8dcf7091e132786e859c9437a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sat, 10 Sep 2022 19:20:22 +0000 Subject: [PATCH] PFW-1362 Use PROGMEM messages The main purpose of these two messages is just to see if SpoolJoin is enabled or not. "On" and "Off" are descriptive enough. Saves 16 bytes of flash --- Firmware/SpoolJoin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Firmware/SpoolJoin.cpp b/Firmware/SpoolJoin.cpp index 81069ce68..f5f076f0b 100644 --- a/Firmware/SpoolJoin.cpp +++ b/Firmware/SpoolJoin.cpp @@ -1,6 +1,8 @@ #include "SpoolJoin.h" #include "Marlin.h" #include "eeprom.h" +#include "messages.h" +#include "language.h" namespace SpoolJoin { @@ -33,9 +35,9 @@ void SpoolJoin::initSpoolJoinStatus() SERIAL_ECHOPGM("SpoolJoin is "); if (isSpoolJoinEnabled()) { - SERIAL_ECHOLNPGM("enabled"); + SERIAL_ECHOLNRPGM(_O(MSG_ON)); } else { - SERIAL_ECHOLNPGM("disabled"); + SERIAL_ECHOLNRPGM(_O(MSG_OFF)); } }