# HG changeset patch # User Daniel O'Connor # Date 1638752180 -37800 # Node ID 60ead9b5fc1b5a3864879c73c3ec96f494dd9c7a # Parent 4450cf73926399a45eca0138be62496d090caae0 Mark temperature as invalid when <-20C as per spec. Shows up as -25C on the unit I have when the sensor is not connected. diff -r 4450cf739263 -r 60ead9b5fc1b epro.py --- a/epro.py Mon Dec 06 11:25:51 2021 +1030 +++ b/epro.py Mon Dec 06 11:26:20 2021 +1030 @@ -142,7 +142,7 @@ self.temp = (data[2] & 0x7f | (data[1] & 0x7f) << 7 | (data[0] & 0x3f) << 14) / 10.0 if data[2] & 0x40: self.temp *= -1 - if self.temp == -20: + if self.temp < -20: self.temp = None def __repr__(self):