mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-16 13:19: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))
|
" expected 6 [%d]"%len(data))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
self.is_calibrated = True if (data[0] & 0b00000100) else False
|
self.is_calibrated = True if (data[0] & 0b00001000) else False
|
||||||
is_busy = True if (data[0] & 0b01000000) else False
|
is_busy = True if (data[0] & 0b10000000) else False
|
||||||
|
|
||||||
if is_busy:
|
if is_busy:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user