aboutsummaryrefslogtreecommitdiffstats
path: root/src/basecmd.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-05-28 11:44:42 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-05-29 10:57:29 -0400
commit879c45db191251af2a00e75bf6ba89ab876c2fad (patch)
treeb440b161cd6ccfa8c97466fbd78688f6f3318452 /src/basecmd.c
parentd798fae20b1cd87396ea884de737aa7f3e359193 (diff)
downloadkutter-879c45db191251af2a00e75bf6ba89ab876c2fad.tar.gz
kutter-879c45db191251af2a00e75bf6ba89ab876c2fad.tar.xz
kutter-879c45db191251af2a00e75bf6ba89ab876c2fad.zip
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>
Diffstat (limited to 'src/basecmd.c')
-rw-r--r--src/basecmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basecmd.c b/src/basecmd.c
index 08dc6ec2..8ce7a27c 100644
--- a/src/basecmd.c
+++ b/src/basecmd.c
@@ -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");