Fix rawinp for DMLED old version

parent 861fa1ce
...@@ -305,6 +305,7 @@ class DomIkaBaseProtocol(object): ...@@ -305,6 +305,7 @@ class DomIkaBaseProtocol(object):
["".join(revlist(list(bin(x).replace("0b", "").zfill(8)))) for x in iter(astr[5:9])])) ["".join(revlist(list(bin(x).replace("0b", "").zfill(8)))) for x in iter(astr[5:9])]))
rawinp=rawio[16:28] rawinp=rawio[16:28]
if len(rawinp) > 0:
map(lambda x,y: reactor.callLater(0.05, map(lambda x,y: reactor.callLater(0.05,
self.core.setInputStatus, src, host, port, ptype, x, str(int(y))), self.core.setInputStatus, src, host, port, ptype, x, str(int(y))),
xrange(1, 4), iter(rawinp)) xrange(1, 4), iter(rawinp))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment