summaryrefslogtreecommitdiff
path: root/digital
diff options
context:
space:
mode:
Diffstat (limited to 'digital')
-rw-r--r--digital/io/tools/io/mex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/digital/io/tools/io/mex.py b/digital/io/tools/io/mex.py
index c683e1bd..bbe29915 100644
--- a/digital/io/tools/io/mex.py
+++ b/digital/io/tools/io/mex.py
@@ -54,7 +54,7 @@ class Mex:
def __handle (self, msg):
assert self.state is not None
- m = Msg (msg.mtype)
+ m = msg
m.push ('B', self.state)
self.__node.response (m)
@@ -102,7 +102,7 @@ class Mex:
node.register (ID_ADC, self.__handle)
def __handle (self, msg):
- m = Msg (msg.mtype)
+ m = msg
for adc in self.__list:
assert adc.value is not None
m.push ('H', adc.value)