From ca9756413f2793279b5ba1c1ecf274ce734b2087 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 26 May 2017 08:34:31 -0400 Subject: sched: Allow shutdown_reason to be uint8 Store the shutdown_reason code in an 8-bit integer - this produces better code on AVR. Signed-off-by: Kevin O'Connor --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index f96cee62..522b0223 100644 --- a/src/command.c +++ b/src/command.c @@ -72,7 +72,7 @@ static char * parsef(char *p, char *maxend, const struct command_parser *cp, uint32_t *args) { if (sched_is_shutdown() && !(READP(cp->flags) & HF_IN_SHUTDOWN)) { - sendf("is_shutdown static_string_id=%hu", sched_shutdown_reason()); + sched_report_shutdown(); return NULL; } uint8_t num_params = READP(cp->num_params); -- cgit v1.2.3-70-g09d2