Przeglądaj źródła

🩹 Fix ExtUI build with Host Keepalive disabled (#23898)

Julien Staub 3 lat temu
rodzic
commit
de87f5309d
No account linked to committer's email address
2 zmienionych plików z 8 dodań i 4 usunięć
  1. 4
    2
      Marlin/src/lcd/extui/ui_api.cpp
  2. 4
    2
      Marlin/src/lcd/extui/ui_api.h

+ 4
- 2
Marlin/src/lcd/extui/ui_api.cpp Wyświetl plik

@@ -389,8 +389,10 @@ namespace ExtUI {
389 389
     return !thermalManager.tooColdToExtrude(extruder - E0);
390 390
   }
391 391
 
392
-  GcodeSuite::MarlinBusyState getHostKeepaliveState() { return TERN0(HOST_KEEPALIVE_FEATURE, gcode.busy_state); }
393
-  bool getHostKeepaliveIsPaused() { return TERN0(HOST_KEEPALIVE_FEATURE, gcode.host_keepalive_is_paused()); }
392
+  #if ENABLED(HOST_KEEPALIVE_FEATURE)
393
+    GcodeSuite::MarlinBusyState getHostKeepaliveState() { return gcode.busy_state; }
394
+    bool getHostKeepaliveIsPaused() { return gcode.host_keepalive_is_paused(); }
395
+  #endif
394 396
 
395 397
   #if HAS_SOFTWARE_ENDSTOPS
396 398
     bool getSoftEndstopState() { return soft_endstop._enabled; }

+ 4
- 2
Marlin/src/lcd/extui/ui_api.h Wyświetl plik

@@ -83,8 +83,10 @@ namespace ExtUI {
83 83
   void injectCommands(char * const);
84 84
   bool commandsInQueue();
85 85
 
86
-  GcodeSuite::MarlinBusyState getHostKeepaliveState();
87
-  bool getHostKeepaliveIsPaused();
86
+  #if ENABLED(HOST_KEEPALIVE_FEATURE)
87
+    GcodeSuite::MarlinBusyState getHostKeepaliveState();
88
+    bool getHostKeepaliveIsPaused();
89
+  #endif
88 90
 
89 91
   bool isHeaterIdle(const heater_t);
90 92
   bool isHeaterIdle(const extruder_t);

Ładowanie…
Anuluj
Zapisz