From 1b63cb6d5cb6b5275271950e697289fd5fa73d7b Mon Sep 17 00:00:00 2001 From: Siddharth Purohit Date: Tue, 19 Nov 2019 15:11:37 +0800 Subject: [PATCH] AP_Arming: Primary Compass is always at serial# 0 --- libraries/AP_Arming/AP_Arming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 713e156f31..578571cb34 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -386,7 +386,7 @@ bool AP_Arming::compass_checks(bool report) // avoid Compass::use_for_yaw(void) as it implicitly calls healthy() which can // incorrectly skip the remaining checks, pass the primary instance directly - if (!_compass.use_for_yaw(_compass.get_primary())) { + if (!_compass.use_for_yaw(0)) { // compass use is disabled return true; }