This commit is contained in:
@@ -99,10 +99,10 @@ class SmartMagnet(DeviceBase):
|
||||
self.set_resting_current()
|
||||
|
||||
def is_resting_current(self):
|
||||
return self.get_current() != self.config.getFieldValue("restingCurrent")
|
||||
return self.get_current() == self.config.getFieldValue("restingCurrent")
|
||||
|
||||
|
||||
#Setting resting curren t to better detect sample
|
||||
#Setting resting current to better detect sample
|
||||
def enforce_sample_detection(self):
|
||||
if not self.is_resting_current():
|
||||
self.set_resting_current()
|
||||
|
||||
Reference in New Issue
Block a user