aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-06-05 20:01:50 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-06-10 12:27:12 -0400
commit17c645f000da6fe99bf75fd79f8e622747b1709e (patch)
tree7f99aadbd6606e4c04ee0040cc00aed8cc5670ea /klippy/mcu.py
parentd4bae4dffe8d3996ed1b1dd8f5230a062ae3d033 (diff)
downloadkutter-17c645f000da6fe99bf75fd79f8e622747b1709e.tar.gz
kutter-17c645f000da6fe99bf75fd79f8e622747b1709e.tar.xz
kutter-17c645f000da6fe99bf75fd79f8e622747b1709e.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py2
1 files changed, 1 insertions, 1 deletions
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)