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
       case PrintStatsProcess:    Draw_PrintStats(); break;
1445
       case PrintStatsProcess:    Draw_PrintStats(); break;
1446
     #endif
1446
     #endif
1447
     case PauseOrStop:            Popup_window_PauseOrStop(); break;
1447
     case PauseOrStop:            Popup_window_PauseOrStop(); break;
1448
+    #if ENABLED(POWER_LOSS_RECOVERY)
1449
+      case PwrlossRec:           Popup_PowerLossRecovery(); break;
1450
+    #endif
1448
     #if ENABLED(ADVANCED_PAUSE_FEATURE)
1451
     #if ENABLED(ADVANCED_PAUSE_FEATURE)
1449
       case FilamentPurge:        Draw_Popup_FilamentPurge(); break;
1452
       case FilamentPurge:        Draw_Popup_FilamentPurge(); break;
1450
     #endif
1453
     #endif
1589
 
1592
 
1590
   #if ENABLED(POWER_LOSS_RECOVERY)
1593
   #if ENABLED(POWER_LOSS_RECOVERY)
1591
     else if (DWIN_lcd_sd_status && recovery.dwin_flag) { // resume print before power off
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
   #endif // POWER_LOSS_RECOVERY
1597
   #endif // POWER_LOSS_RECOVERY
1595
 
1598
 
1675
     #endif
1678
     #endif
1676
     case NothingToDo:     break;
1679
     case NothingToDo:     break;
1677
     case Locked:          HMI_LockScreen(); break;
1680
     case Locked:          HMI_LockScreen(); break;
1681
+    #if ENABLED(POWER_LOSS_RECOVERY)
1682
+      case PwrlossRec:    HMI_PowerlossRecovery(); break;
1683
+    #endif
1678
     #if HAS_ESDIAG
1684
     #if HAS_ESDIAG
1679
       case ESDiagProcess: HMI_Popup(); break;
1685
       case ESDiagProcess: HMI_Popup(); break;
1680
     #endif
1686
     #endif

Loading…
Cancel
Save