Explorar o código

PFW-1362 Show if SpoolJoin is enabled or disabled at bootup

Guðni Már Gilbert %!s(int64=2) %!d(string=hai) anos
pai
achega
c5bb34f226
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      Firmware/SpoolJoin.cpp

+ 10 - 0
Firmware/SpoolJoin.cpp

@@ -1,4 +1,5 @@
 #include "SpoolJoin.h"
+#include "Marlin.h"
 #include "eeprom.h"
 
 namespace SpoolJoin {
@@ -27,6 +28,15 @@ void SpoolJoin::initSpoolJoinStatus()
     } else {
         updateSpoolJoinStatus(currentStatus);
     }
+
+    // Useful information to see during bootup
+    SERIAL_ECHOPGM("SpoolJoin is ");
+    if (isSpoolJoinEnabled())
+    {
+        SERIAL_ECHOLNPGM("enabled");
+    } else {
+        SERIAL_ECHOLNPGM("disabled");
+    }
 }
 
 void SpoolJoin::toggleSpoolJoin()