diff --git a/script/test/onewire.py b/script/test/onewire.py index 9376ea8..ab50474 100644 --- a/script/test/onewire.py +++ b/script/test/onewire.py @@ -26,6 +26,7 @@ class Esera(TcpDevice): TcpDevice.__init__(self, name, server) self.setMode(self.Mode.FullDuplex) self.detectors = [] + self.complete = False def start(self): self.write("set,sys,run,1\n") @@ -59,7 +60,12 @@ class Esera(TcpDevice): raise def doUpdate(self): - self.req_data() + #if not self.self.complete: + # if len(take()) == 30: + # self.complete = True + # self.start() + print "OK" + #self.req_data() #def onByte(self, rx): # print rx