mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-21 05:37:54 -06:00
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>
This commit is contained in:
parent
b9940f0e0d
commit
ca9756413f
4 changed files with 17 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue