mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-14 17:26:08 +01: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user