From d4aee4f55e0203aa7cf2877227a574a1b1458a2e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 6 Nov 2021 18:47:44 -0400 Subject: [PATCH] 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 --- klippy/mcu.py | 2 +- 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");