瀏覽代碼

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
Guðni Már Gilbert 2 年之前
父節點
當前提交
998ed87f25
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      Firmware/SpoolJoin.cpp

+ 4 - 2
Firmware/SpoolJoin.cpp

@@ -1,6 +1,8 @@
 #include "SpoolJoin.h"
 #include "SpoolJoin.h"
 #include "Marlin.h"
 #include "Marlin.h"
 #include "eeprom.h"
 #include "eeprom.h"
+#include "messages.h"
+#include "language.h"
 
 
 namespace SpoolJoin {
 namespace SpoolJoin {
 
 
@@ -33,9 +35,9 @@ void SpoolJoin::initSpoolJoinStatus()
     SERIAL_ECHOPGM("SpoolJoin is ");
     SERIAL_ECHOPGM("SpoolJoin is ");
     if (isSpoolJoinEnabled())
     if (isSpoolJoinEnabled())
     {
     {
-        SERIAL_ECHOLNPGM("enabled");
+        SERIAL_ECHOLNRPGM(_O(MSG_ON));
     } else {
     } else {
-        SERIAL_ECHOLNPGM("disabled");
+        SERIAL_ECHOLNRPGM(_O(MSG_OFF));
     }
     }
 }
 }