From 68df5b76063ca673cb392c6c6f30c359197ad525 Mon Sep 17 00:00:00 2001 From: floaledm Date: Thu, 22 Sep 2016 13:56:59 -0500 Subject: [PATCH] Plane: change sensor health check to prevent false positive --- ArduPlane/GCS_Mavlink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index 0e3dfd5316..5e356f1510 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -347,7 +347,7 @@ void Plane::send_extended_status1(mavlink_channel_t chan) #if FRSKY_TELEM_ENABLED == ENABLED // give mask of error flags to Frsky_Telemetry - uint32_t sensors_error_flags = (control_sensors_health ^ control_sensors_enabled) & control_sensors_present; + uint32_t sensors_error_flags = !control_sensors_health & control_sensors_enabled & control_sensors_present; frsky_telemetry.update_sensor_status_flags(sensors_error_flags); #endif }