diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-05-26 08:34:31 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-05-26 12:32:05 -0400 |
commit | ca9756413f2793279b5ba1c1ecf274ce734b2087 (patch) | |
tree | 292f855ec549f6b7355589af4c4a95c86444b4c5 /src/command.c | |
parent | b9940f0e0d7b5b4fae497cc80d14948a091d71c2 (diff) | |
download | kutter-ca9756413f2793279b5ba1c1ecf274ce734b2087.tar.gz kutter-ca9756413f2793279b5ba1c1ecf274ce734b2087.tar.xz kutter-ca9756413f2793279b5ba1c1ecf274ce734b2087.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |