Closedown
This commit is contained in:
1 parent
a22d30f727
commit
b31d1c6118
2 files changed
+12
-7
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ from ch.psi.pshell.modbus import ModbusTCP
|
||||
run("RobotSC")
|
||||
#run("RobotModbus")
|
||||
|
||||
|
||||
run("onewire")
|
||||
|
||||
|
||||
|
||||
|
||||
+11
-6
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user