Closed amotl closed 4 years ago
In the new version I intentionally did not implement this test. 85°C is a valid result, which must not be suppressed by the driver. Checking must be done by the calling code, which knows the context.
I see your point here. Thanks!
I also retracted the corresponding pull request https://github.com/micropython/micropython/pull/5338 to Genuine MicroPython.
As a final note, a member of our community showed us [1] how the corresponding ethersex driver uses a semaphore for propagating the conversion error. This way, it the condition can be implemented within the driver, but the caller may decide about its outcome. Thanks @weef!
According to the specification [1], the power-on reset value of the temperature register is +85°C (Page 6).
Resolve #7.
[1] https://datasheets.maximintegrated.com/en/ds/DS18B20.pdf