From 17c645f000da6fe99bf75fd79f8e622747b1709e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 5 Jun 2024 20:01:50 -0400 Subject: msgproto: Support multi-byte command and response ids Update the msgproto.py code so that it can support message ids that are larger than a single byte. (The host C code in klippy/chelper/msgblock.c already supports multi-byte ids.) Signed-off-by: Kevin O'Connor --- klippy/mcu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/mcu.py') diff --git a/klippy/mcu.py b/klippy/mcu.py index d7a679ac..6b106245 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -87,7 +87,7 @@ class CommandWrapper: if cmd_queue is None: cmd_queue = serial.get_default_command_queue() self._cmd_queue = cmd_queue - self._msgtag = msgparser.lookup_msgtag(msgformat) & 0xffffffff + self._msgtag = msgparser.lookup_msgid(msgformat) & 0xffffffff def send(self, data=(), minclock=0, reqclock=0): cmd = self._cmd.encode(data) self._serial.raw_send(cmd, minclock, reqclock, self._cmd_queue) -- cgit v1.2.3-70-g09d2