aht10: Fix status bit masks
Signed-off-by: Lev Voronov <minicx@disroot.org>
This commit is contained in:
1 parent
938300f3c3
commit
355b6cee8c
1 file changed
+2
-2
@@ -91,8 +91,8 @@ class AHT10:
|
||||
" expected 6 [%d]"%len(data))
|
||||
continue
|
||||
|
||||
self.is_calibrated = True if (data[0] & 0b00000100) else False
|
||||
is_busy = True if (data[0] & 0b01000000) else False
|
||||
self.is_calibrated = True if (data[0] & 0b00001000) else False
|
||||
is_busy = True if (data[0] & 0b10000000) else False
|
||||
|
||||
if is_busy:
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user