Closedown

This commit is contained in:
gac-S_Changer
2017-03-13 18:26:36 +01:00
parent a22d30f727
commit b31d1c6118
2 changed files with 12 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ from ch.psi.pshell.modbus import ModbusTCP
run("RobotSC")
#run("RobotModbus")
run("onewire")

View File

@@ -60,12 +60,17 @@ class Esera(TcpDevice):
raise
def doUpdate(self):
#if not self.self.complete:
# if len(take()) == 30:
# self.complete = True
# self.start()
print "OK"
#self.req_data()
if not self.complete:
init = True
for det in self.detectors:
if det.id == None:
init = False
break
if init:
self.complete = True
self.start()
self.req_data()
#def onByte(self, rx):
# print rx