From 744c6d114e3681a2e8cfcd4475424a7d19774d52 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 11 Oct 2017 22:01:45 -0400 Subject: 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 --- src/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sched.c') diff --git a/src/sched.c b/src/sched.c index e4b51355..f278c426 100644 --- a/src/sched.c +++ b/src/sched.c @@ -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); } -- cgit v1.2.3-70-g09d2