Ver código fonte

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

Julien Staub 3 anos atrás
pai
commit
de87f5309d
Nenhuma conta vinculada ao e-mail do autor do commit
2 arquivos alterados com 8 adições e 4 exclusões
  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 Ver arquivo

389
     return !thermalManager.tooColdToExtrude(extruder - E0);
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
   #if HAS_SOFTWARE_ENDSTOPS
397
   #if HAS_SOFTWARE_ENDSTOPS
396
     bool getSoftEndstopState() { return soft_endstop._enabled; }
398
     bool getSoftEndstopState() { return soft_endstop._enabled; }

+ 4
- 2
Marlin/src/lcd/extui/ui_api.h Ver arquivo

83
   void injectCommands(char * const);
83
   void injectCommands(char * const);
84
   bool commandsInQueue();
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
   bool isHeaterIdle(const heater_t);
91
   bool isHeaterIdle(const heater_t);
90
   bool isHeaterIdle(const extruder_t);
92
   bool isHeaterIdle(const extruder_t);

Carregando…
Cancelar
Salvar