Fix rawinp for DMLED old version

parent 861fa1ce
...@@ -305,9 +305,10 @@ class DomIkaBaseProtocol(object): ...@@ -305,9 +305,10 @@ 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]
map(lambda x,y: reactor.callLater(0.05, if len(rawinp) > 0:
self.core.setInputStatus, src, host, port, ptype, x, str(int(y))), map(lambda x,y: reactor.callLater(0.05,
xrange(1, 4), iter(rawinp)) self.core.setInputStatus, src, host, port, ptype, x, str(int(y))),
xrange(1, 4), iter(rawinp))
larg=len(arg) larg=len(arg)
......
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