mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-17 19:57:57 -06:00
mcu: Do not automatically restart MCU with new config if it is shutdown
Normally, the MCU is restarted on a config change. However, that should not be done automatically if the MCU is in a shutdown state. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
d798fae20b
commit
879c45db19
2 changed files with 5 additions and 2 deletions
|
@ -201,8 +201,8 @@ static uint32_t config_crc;
|
|||
void
|
||||
command_get_config(uint32_t *args)
|
||||
{
|
||||
sendf("config is_config=%c crc=%u move_count=%hu"
|
||||
, is_finalized(), config_crc, move_count);
|
||||
sendf("config is_config=%c crc=%u move_count=%hu is_shutdown=%c"
|
||||
, is_finalized(), config_crc, move_count, sched_is_shutdown());
|
||||
}
|
||||
DECL_COMMAND_FLAGS(command_get_config, HF_IN_SHUTDOWN, "get_config");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue