Kaynağa Gözat

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

Julien Staub 2 yıl önce
ebeveyn
işleme
de87f5309d
No account linked to committer's email address

+ 4
- 2
Marlin/src/lcd/extui/ui_api.cpp Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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);

Loading…
İptal
Kaydet