This commit is contained in:
2025-08-05 14:31:48 +02:00
parent 7a5694fbe2
commit 904db04447
5 changed files with 33 additions and 18 deletions

View File

@@ -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()