prusa3d / Prusa-Firmware

Firmware for Original Prusa i3 3D printer by PrusaResearch
GNU General Public License v3.0
1.99k stars 1.05k forks source link

Power Panic and LCD menu #4635

Closed 3d-gussner closed 3 months ago

3d-gussner commented 3 months ago

Improved Power Panic

This Firmware doesn't recover correctly with Prusa Link 0.8.0-alpha4 at this moment. I was able to recover host prints with a modified OctoPrint + two Plugins and additional code (which isn't in this PR as this code is a workaround of existing OctoPrint+Plugins)

Update 27-03-2024

Added EEPROM_UVLO_Z_LIFTED to prevent multiple Z lifts in case of a power panic while the print is paused. A host print recovery it doesn't wait for hotend temp to be stable as it will go into pause state anyway and the hotend will be disabled while paused anyway.

Tested with MK404

Difference between SD and Host print power panic:

The print can't be recovered if a reset happens at the last step of the recovery as at this moment the power panic recovery is "completed" and the printer is back in normal mode.

github-actions[bot] commented 3 months ago

All values in bytes. Δ Delta to base

Target ΔFlash ΔSRAM Used Flash Used SRAM Free Flash Free SRAM
MK3S_MULTILANG 190 -1 247220 5653 6732 2539
MK3_MULTILANG 168 1 246480 5662 7472 2530