working on lockin (SR)

Change-Id: Ia8dc71bf1029feaa66614ade0f8e9e99358f142e
This commit is contained in:
Oksana Shliakhtun
2023-05-31 13:38:44 +02:00
parent 564620e9e3
commit 0771cb6899
2 changed files with 28 additions and 31 deletions

View File

@ -85,8 +85,8 @@ class XY(HasIO, Readable):
return c_ind
def comm(self, cmd):
reply, status, overload = self.communicate(cmd).split(b';')
if overload != b'0':
reply, status, overload = self.communicate(cmd).split(';')
if overload != '0':
self.status = (self.Status.WARN, f'overload {overload}')
self.status = (self.Status.IDLE, '')
return reply