Touchup mesh point updates and M600 fix
This commit is contained in:
@@ -182,16 +182,10 @@ bool hasPrintTimer = false;
|
||||
}
|
||||
|
||||
void onMeshUpdate(const int8_t xpos, const int8_t ypos, const float zval) {
|
||||
}
|
||||
|
||||
void onMeshUpdate(const int8_t xpos, const int8_t ypos, const ExtUI::probe_state_t state) {
|
||||
}
|
||||
|
||||
void onMeshCallback(const int8_t xpos, const int8_t ypos, const float zval) {
|
||||
ScreenHandler.OnMeshLevelingUpdate(xpos, ypos);
|
||||
}
|
||||
|
||||
void onMeshCallback(const int8_t xpos, const int8_t ypos, const ExtUI::probe_state_t state) {
|
||||
void onMeshUpdate(const int8_t xpos, const int8_t ypos, const ExtUI::probe_state_t state) {
|
||||
// Only called for UBL
|
||||
if (state == MESH_START) {
|
||||
ScreenHandler.OnMeshLevelingStart();
|
||||
@@ -199,6 +193,8 @@ bool hasPrintTimer = false;
|
||||
|
||||
ScreenHandler.OnMeshLevelingUpdate(xpos, ypos);
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
|
||||
@@ -453,13 +453,6 @@ bool DGUSScreenHandler::HandlePendingUserConfirmation() {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Switch to the resume screen
|
||||
ScreenHandler.GotoScreen(DGUSLCD_SCREEN_PRINT_RUNNING);
|
||||
while (!ScreenHandler.loop()); // Wait while anything is left to be sent
|
||||
|
||||
// Give DWIN a chance to catch up
|
||||
delay(250);
|
||||
|
||||
// We might be re-entrant here
|
||||
ExtUI::setUserConfirmed();
|
||||
|
||||
|
||||
@@ -163,13 +163,22 @@ void PrintRunningMenuHandler(DGUS_VP_Variable &var, unsigned short buttonValue)
|
||||
void PrintPausedMenuHandler(DGUS_VP_Variable &var, unsigned short buttonValue) {
|
||||
switch (var.VP) {
|
||||
case VP_BUTTON_RESUMEPRINTKEY:
|
||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||
//SERIAL_ECHOLN("Handling VP_BUTTON_RESUMEPRINTKEY");
|
||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||
runout.reset();
|
||||
#endif
|
||||
|
||||
if (!ScreenHandler.HandlePendingUserConfirmation()) {
|
||||
ExtUI::resumePrint();
|
||||
ScreenHandler.GotoScreen(DGUSLCD_SCREEN_PRINT_RUNNING);
|
||||
//SERIAL_ECHOLN("Runout Reset");
|
||||
#endif
|
||||
if(ExtUI::isWaitingOnUser()) {
|
||||
ScreenHandler.HandlePendingUserConfirmation();
|
||||
//SERIAL_ECHOLN("User Confirmed");
|
||||
}
|
||||
else if(ExtUI::isPrintingFromMediaPaused()) {
|
||||
//SERIAL_ECHOLN("SD Resume");
|
||||
ExtUI::resumePrint();
|
||||
}
|
||||
//SERIAL_ECHOLN("Reasons handled");
|
||||
if(!ExtUI::isMoving()) {
|
||||
ScreenHandler.GotoScreen(DGUSLCD_SCREEN_PRINT_RUNNING);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user