aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/msgproto.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-02-27 14:16:16 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-02-27 21:06:16 -0500
commitb139a8561f54b7a764faa54b117a8544b8451d41 (patch)
tree1d23fd730928f3db60d8d5838b0cded936fbb655 /klippy/msgproto.py
parent8518da9824ffa4c8b0f41be140eecf3973126d10 (diff)
downloadkutter-b139a8561f54b7a764faa54b117a8544b8451d41.tar.gz
kutter-b139a8561f54b7a764faa54b117a8544b8451d41.tar.xz
kutter-b139a8561f54b7a764faa54b117a8544b8451d41.zip
serialhdl: Add a wrapper around the results of lookup_command()
Add a lookup_command() method to the SerialReader class that provides a wrapper that stores the serial and commandqueue references. This makes it easier to run the send() method. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/msgproto.py')
-rw-r--r--klippy/msgproto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/msgproto.py b/klippy/msgproto.py
index 3d655faa..7e38fe6a 100644
--- a/klippy/msgproto.py
+++ b/klippy/msgproto.py
@@ -108,7 +108,7 @@ class MessageFormat:
self.param_types = [MessageTypes[fmt] for name, fmt in argparts]
self.param_names = [(name, MessageTypes[fmt]) for name, fmt in argparts]
self.name_to_type = dict(self.param_names)
- def encode(self, *params):
+ def encode(self, params):
out = []
out.append(self.msgid)
for i, t in enumerate(self.param_types):