aht10: Fix status bit masks

Signed-off-by: Lev Voronov <minicx@disroot.org>
This commit is contained in:
minicx
2025-11-15 15:31:37 +03:00
committed by KevinOConnor
parent 938300f3c3
commit 355b6cee8c

View File

@@ -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