mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-15 20:59:56 +01:00
aht10: Fix status bit masks
Signed-off-by: Lev Voronov <minicx@disroot.org>
This commit is contained in:
@@ -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