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>
This commit is contained in:
Kevin O'Connor 2021-11-06 18:47:44 -04:00
parent 9ecddd1ba4
commit d4aee4f55e
2 changed files with 3 additions and 3 deletions

View File

@ -684,7 +684,7 @@ class MCU:
def _send_get_config(self): def _send_get_config(self):
get_config_cmd = self.lookup_query_command( get_config_cmd = self.lookup_query_command(
"get_config", "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(): if self.is_fileoutput():
return { 'is_config': 0, 'move_count': 500, 'crc': 0 } return { 'is_config': 0, 'move_count': 500, 'crc': 0 }
config_params = get_config_cmd.send() config_params = get_config_cmd.send()

View File

@ -244,8 +244,8 @@ static uint32_t config_crc;
void void
command_get_config(uint32_t *args) command_get_config(uint32_t *args)
{ {
sendf("config is_config=%c crc=%u move_count=%hu is_shutdown=%c" sendf("config is_config=%c crc=%u is_shutdown=%c move_count=%hu"
, is_finalized(), config_crc, move_count, sched_is_shutdown()); , is_finalized(), config_crc, sched_is_shutdown(), move_count);
} }
DECL_COMMAND_FLAGS(command_get_config, HF_IN_SHUTDOWN, "get_config"); DECL_COMMAND_FLAGS(command_get_config, HF_IN_SHUTDOWN, "get_config");