Skip to content

Commit de87f53

Browse files
authored
🩹 Fix ExtUI build with Host Keepalive disabled (MarlinFirmware#23898)
1 parent a9c30cb commit de87f53

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Marlin/src/lcd/extui/ui_api.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,10 @@ namespace ExtUI {
389389
return !thermalManager.tooColdToExtrude(extruder - E0);
390390
}
391391

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
394396

395397
#if HAS_SOFTWARE_ENDSTOPS
396398
bool getSoftEndstopState() { return soft_endstop._enabled; }

Marlin/src/lcd/extui/ui_api.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ namespace ExtUI {
8383
void injectCommands(char * const);
8484
bool commandsInQueue();
8585

86-
GcodeSuite::MarlinBusyState getHostKeepaliveState();
87-
bool getHostKeepaliveIsPaused();
86+
#if ENABLED(HOST_KEEPALIVE_FEATURE)
87+
GcodeSuite::MarlinBusyState getHostKeepaliveState();
88+
bool getHostKeepaliveIsPaused();
89+
#endif
8890

8991
bool isHeaterIdle(const heater_t);
9092
bool isHeaterIdle(const extruder_t);

0 commit comments

Comments
 (0)