Update
This commit is contained in:
@@ -5,7 +5,7 @@ import traceback
|
||||
from frappy.core import Readable, Parameter, FloatRange, HasIO, StringIO, Property, IntRange, IDLE, BUSY, WARN, ERROR, Drivable, BoolType, Attached
|
||||
|
||||
class TSSOP16_IO(StringIO):
|
||||
end_of_line = '\r\n'
|
||||
end_of_line = '\r'
|
||||
wait_before = 3.0
|
||||
timeout=1
|
||||
identification = [ ('*IDN?', r'0x48,ACM1219,.*') ]
|
||||
@@ -22,10 +22,9 @@ class TSSOP16(HasIO, Readable):
|
||||
l = self.communicate('readCVT')
|
||||
vals = l.split(',')
|
||||
vals = [ float(v) for v in vals ]
|
||||
print(vals)
|
||||
return vals[0]
|
||||
except:
|
||||
return self.custom_read_off_cvt(recursive_layer=recursive_layer+1)
|
||||
print('Retrying: ', recursive_layer+1)
|
||||
traceback.print_exc()
|
||||
self.io.closeConnection()
|
||||
self.io.connectStart()
|
||||
|
||||
Reference in New Issue
Block a user