htu21d: Update htu21d.py (#4520)
Line 202: should be self.humidity instead of self.temp Signed-off-by: Dawid Murawski <dawid.m@gmx.net>
This commit is contained in:
parent
f313a2294a
commit
b4ee93043a
|
@ -199,7 +199,7 @@ class HTU21D:
|
|||
if (self.humidity < 0):
|
||||
#due to RH accuracy, measured value might be
|
||||
# slightly less than 0 or more 100
|
||||
self.temp = 0
|
||||
self.humidity = 0
|
||||
elif (self.humidity > 100):
|
||||
self.humidity = 100
|
||||
# Only for HTU21D & SHT21.
|
||||
|
|
Loading…
Reference in New Issue