📺 ExtUI pause state response (#22164)
This commit is contained in:
committed by
GitHub
parent
938d86d1c5
commit
3ba5eda0b2
@@ -102,6 +102,10 @@
|
||||
#include "../../feature/host_actions.h"
|
||||
#endif
|
||||
|
||||
#if M600_PURGE_MORE_RESUMABLE
|
||||
#include "../../feature/pause.h"
|
||||
#endif
|
||||
|
||||
namespace ExtUI {
|
||||
static struct {
|
||||
uint8_t printer_killed : 1;
|
||||
@@ -381,7 +385,8 @@ namespace ExtUI {
|
||||
return !thermalManager.tooColdToExtrude(extruder - E0);
|
||||
}
|
||||
|
||||
GcodeSuite::MarlinBusyState getMachineBusyState() { return TERN0(HOST_KEEPALIVE_FEATURE, GcodeSuite::busy_state); }
|
||||
GcodeSuite::MarlinBusyState getHostKeepaliveState() { return TERN0(HOST_KEEPALIVE_FEATURE, gcode.busy_state); }
|
||||
bool getHostKeepaliveIsPaused() { return TERN0(HOST_KEEPALIVE_FEATURE, gcode.host_keepalive_is_paused()); }
|
||||
|
||||
#if HAS_SOFTWARE_ENDSTOPS
|
||||
bool getSoftEndstopState() { return soft_endstop._enabled; }
|
||||
@@ -1025,9 +1030,15 @@ namespace ExtUI {
|
||||
TERN_(HAS_FAN, thermalManager.zero_fan_speeds());
|
||||
}
|
||||
|
||||
bool awaitingUserConfirm() { return TERN0(HAS_RESUME_CONTINUE, wait_for_user); }
|
||||
bool awaitingUserConfirm() {
|
||||
return TERN0(HAS_RESUME_CONTINUE, wait_for_user) || getHostKeepaliveIsPaused();
|
||||
}
|
||||
void setUserConfirmed() { TERN_(HAS_RESUME_CONTINUE, wait_for_user = false); }
|
||||
|
||||
#if M600_PURGE_MORE_RESUMABLE
|
||||
void setPauseMenuResponse(PauseMenuResponse response) { pause_menu_response = response; }
|
||||
#endif
|
||||
|
||||
void printFile(const char *filename) {
|
||||
TERN(SDSUPPORT, card.openAndPrintFile(filename), UNUSED(filename));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user