mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02:00
sched: Don't overwrite shutdown reason if shutdown called while shutdown
If a shutdown occurs while the machine is already shutdown, then keep the original shutdown reason code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
0a3c23bcf6
commit
cdd5a772e8
@ -276,7 +276,8 @@ void
|
||||
sched_shutdown(unsigned int reason)
|
||||
{
|
||||
irq_disable();
|
||||
shutdown_reason = reason;
|
||||
if (!shutdown_status)
|
||||
shutdown_reason = reason;
|
||||
longjmp(shutdown_jmp, 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user