You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.
is_calibrating property exhibits an incoherent behaviour: it gives different results if it is called before or after the first calibration. eg:
In [3]: b.is_calibratingOut[3]: TrueIn [4]: b.calibrate()
In [5]: b.is_calibratingOut[5]: False
Function:
@property#TODO: after the first calibration, different resultssdefis_calibrating(self):
# r = self._dll.LCP_IsCalibrationFinished(self._handle[0])# return bool(r)r=self._call('LCP_IsCalibrationFinished', self._handle[0])
ifr==0:
returnTrueelse:
returnFalse
The text was updated successfully, but these errors were encountered:
In fact, QmixPump.is_calibrating is always Trueafter powering on the system, as reported by LCP_IsCalibrationFinished(); we should ask Cetoni about this, it appears to be a bug in their code.
I assume it's a documentation problem on Cetoni's side: LCP_IsCalibrationFinished() would naturally produce a negative response right after powering up the system, because no calibration has been carried out at this point. After a successful calibration, the response would be positive.
So while Cetoni's docs say,
0
- Device is calibrating
1
- Device calibration has finished
<0
- Error code
I believe the first line should rather read 0 | - Device has not yet been calibrated or is currently calibrating.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
is_calibrating
property exhibits an incoherent behaviour: it gives different results if it is called before or after the first calibration. eg:Function:
The text was updated successfully, but these errors were encountered: