From b139a8561f54b7a764faa54b117a8544b8451d41 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 27 Feb 2018 14:16:16 -0500 Subject: 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 --- klippy/msgproto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/msgproto.py') 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): -- cgit v1.2.3-70-g09d2