diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-11-06 18:47:44 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-11-06 18:47:44 -0400 |
commit | d4aee4f55e0203aa7cf2877227a574a1b1458a2e (patch) | |
tree | 98e665241719721241134c9000f7777db81c83b9 | |
parent | 9ecddd1ba4fe6d481f01fa2b1d9175b927907156 (diff) | |
download | kutter-d4aee4f55e0203aa7cf2877227a574a1b1458a2e.tar.gz kutter-d4aee4f55e0203aa7cf2877227a574a1b1458a2e.tar.xz kutter-d4aee4f55e0203aa7cf2877227a574a1b1458a2e.zip |
mcu: Make a minor change to the protocol to require mcu update
Commit 9ecddd1b fixed a serious error (introduced in 7d95a004). Force
a protocol version change so users are aware of the need to update the
mcu code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/mcu.py | 2 | ||||
-rw-r--r-- | src/basecmd.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py index 9bc5b2c7..751e55ef 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -684,7 +684,7 @@ class MCU: def _send_get_config(self): get_config_cmd = self.lookup_query_command( "get_config", - "config is_config=%c crc=%u move_count=%hu is_shutdown=%c") + "config is_config=%c crc=%u is_shutdown=%c move_count=%hu") if self.is_fileoutput(): return { 'is_config': 0, 'move_count': 500, 'crc': 0 } config_params = get_config_cmd.send() diff --git a/src/basecmd.c b/src/basecmd.c index 0cf8afec..6d26884d 100644 --- a/src/basecmd.c +++ b/src/basecmd.c @@ -244,8 +244,8 @@ static uint32_t config_crc; void command_get_config(uint32_t *args) { - sendf("config is_config=%c crc=%u move_count=%hu is_shutdown=%c" - , is_finalized(), config_crc, move_count, sched_is_shutdown()); + sendf("config is_config=%c crc=%u is_shutdown=%c move_count=%hu" + , is_finalized(), config_crc, sched_is_shutdown(), move_count); } DECL_COMMAND_FLAGS(command_get_config, HF_IN_SHUTDOWN, "get_config"); |