Browse Source

🐛 Fix PLR for E3V2 Enhanced UI (#23543)

Miguel Risco-Castillo 3 years ago
parent
commit
6cfa011c10
No account linked to committer's email address
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      Marlin/src/lcd/e3v2/enhanced/dwin.cpp

+ 7
- 1
Marlin/src/lcd/e3v2/enhanced/dwin.cpp View File

@@ -1445,6 +1445,9 @@ void Draw_Main_Area() {
1445 1445
       case PrintStatsProcess:    Draw_PrintStats(); break;
1446 1446
     #endif
1447 1447
     case PauseOrStop:            Popup_window_PauseOrStop(); break;
1448
+    #if ENABLED(POWER_LOSS_RECOVERY)
1449
+      case PwrlossRec:           Popup_PowerLossRecovery(); break;
1450
+    #endif
1448 1451
     #if ENABLED(ADVANCED_PAUSE_FEATURE)
1449 1452
       case FilamentPurge:        Draw_Popup_FilamentPurge(); break;
1450 1453
     #endif
@@ -1589,7 +1592,7 @@ void EachMomentUpdate() {
1589 1592
 
1590 1593
   #if ENABLED(POWER_LOSS_RECOVERY)
1591 1594
     else if (DWIN_lcd_sd_status && recovery.dwin_flag) { // resume print before power off
1592
-      Goto_PowerLossRecovery();
1595
+      return Goto_PowerLossRecovery();
1593 1596
     }
1594 1597
   #endif // POWER_LOSS_RECOVERY
1595 1598
 
@@ -1675,6 +1678,9 @@ void DWIN_HandleScreen() {
1675 1678
     #endif
1676 1679
     case NothingToDo:     break;
1677 1680
     case Locked:          HMI_LockScreen(); break;
1681
+    #if ENABLED(POWER_LOSS_RECOVERY)
1682
+      case PwrlossRec:    HMI_PowerlossRecovery(); break;
1683
+    #endif
1678 1684
     #if HAS_ESDIAG
1679 1685
       case ESDiagProcess: HMI_Popup(); break;
1680 1686
     #endif

Loading…
Cancel
Save