-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add auto restart on power loss if PLR is enabled. #26658
base: bugfix-2.1.x
Are you sure you want to change the base?
Add auto restart on power loss if PLR is enabled. #26658
Conversation
My time is precious. Please make the effort to properly format the code as it will save me several minutes of extra work. |
0e83856
to
f842739
Compare
Sorry, reformatted. I hope it's OK now. |
Marlin/src/MarlinCore.cpp
Outdated
|
||
for (uint16_t i = 0; i < PLR_REBOOT_TIMEOUT; i++) { | ||
hal.watchdog_refresh(); | ||
delay(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried delay
and safe_delay
methods, but they seem freezing forever and system was restarted by watchdog after four seconds. The only working method I found was delayMicroseconds
8eb7cbd
to
f36ae2f
Compare
f36ae2f
to
ca7752a
Compare
I would combine this PR with PLR: heat bed while waiting for user confirmation. #26691 Thus if auto resume is disabled at least bed heating will start as soon as possible. |
9c65146
to
4f65466
Compare
c792921
to
37fb26b
Compare
37d77d6
to
aa44542
Compare
Implements [FR] Power Loss Recovery with UPS: auto resume printing if power was immediately restored. #26604
This PR adds option for auto reboot if Auto power loss print resume with temperature limitation #26649 is enabled.
Usage scenario is if printer has UPS and power restored within seconds, while UPS still has a power, printer is stuck at "Restart" message, though it's desirable to continue immediately while the bed/chamber are still hot.