Change calibration check logic

This commit is contained in:
artem30801
2024-09-17 19:10:06 +03:00
parent 94bf2f2715
commit 3fa13300a2

View File

@@ -93,7 +93,7 @@ def get_calibration_status():
if acc_status.value.integer == 0 and acc_status.success:
status_text += "acc: uncalibrated; "
if status_text == "":
if not gyro_status.success or not acc_status.success or not (has_mag and mag_status.success):
if not gyro_status.success and not acc_status.success and not (has_mag and mag_status.success):
status_text = "NO_INFO"
else:
status_text = "OK"