fix CDISP

Change-Id: I09010a1997799bed04f25a7a3eb0157f7af5ad8b
This commit is contained in:
Oksana Shliakhtun 2023-01-30 17:04:28 +01:00
parent f5c96214b0
commit 866fe73f2e

View File

@ -158,8 +158,9 @@ class HeaterOutput(LakeShore, HasControlledBy, HasIO, Writable):
return self.percent_to_power(float(reply))
def set_heater_mode(self, mode):
self.communicate(f'CSET {self.loop},{self.channel},1,1,0')
self.set_par(f'CMODE {self.loop}, {int(mode)}')
self.communicate(f'CSET {self.loop},{self.channel},1,1,0;.'
f'CMODE {self.loop}, {int(mode)};'
f'RANGE?')
class TemperatureLoop340(HasOutputModule, Sensor340, Drivable, LakeShore):