mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-16 03:07:56 -06:00
sched: Don't shutdown on a "timer in the past" if already shutdown
A shutdown will not help if the mcu is already in a shutdown state. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
3b9b4e4d6f
commit
744c6d114e
4 changed files with 5 additions and 6 deletions
|
@ -306,7 +306,7 @@ sched_report_shutdown(void)
|
|||
void
|
||||
sched_try_shutdown(uint_fast8_t reason)
|
||||
{
|
||||
if (shutdown_status != 2)
|
||||
if (!shutdown_status)
|
||||
sched_shutdown(reason);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue