From 81da5379d406236b8284921d34f23e877464db63 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 4 Feb 2021 16:33:03 -0500 Subject: buildcommands: Extend number of available mcu messages from 96 to 128 Some internal code treats the message ids as encoded "variable length quantities", while other internal code assumes the message id is always one byte long. Continue using this scheme, but convert the VLQ users to use the name "msgtag" while the 1-byte users use "msgid". Increase the number of available msgids from 96 to 127 - the higher values get encoded as negative "msgtags". Signed-off-by: Kevin O'Connor --- klippy/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/console.py') diff --git a/klippy/console.py b/klippy/console.py index 69095345..b787111f 100755 --- a/klippy/console.py +++ b/klippy/console.py @@ -138,7 +138,7 @@ class KeyboardReader: def command_LIST(self, parts): self.update_evals(self.reactor.monotonic()) mp = self.ser.get_msgparser() - cmds = [msgformat for msgid, msgtype, msgformat in mp.get_messages() + cmds = [msgformat for msgtag, msgtype, msgformat in mp.get_messages() if msgtype == 'command'] out = "Available mcu commands:" out += "\n ".join([""] + sorted(cmds)) -- cgit v1.2.3-70-g09d2