Skip to content

Commit

Permalink
🚸 Purge PLR on power-off
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 28, 2024
1 parent 9e87af7 commit 94e9f26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Marlin/src/gcode/control/M80_M81.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ void GcodeSuite::M81() {
ZERO(thermalManager.saved_fan_speed);
#endif

TERN_(POWER_LOSS_RECOVERY, recovery.purge()); // Clear PLR on intentional shutdown

safe_delay(1000); // Wait 1 second before switching off

LCD_MESSAGE_F(MACHINE_NAME " " STR_OFF ".");
Expand Down

0 comments on commit 94e9f26

Please sign in to comment.