From f8be4efed4d653d3ae2c9265ee86c20038aebc93 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 3 Jul 2018 17:36:32 +1000 Subject: [PATCH] AP_Compass: init never fails; return void rather than bool --- libraries/AP_Compass/AP_Compass.cpp | 4 +--- libraries/AP_Compass/AP_Compass.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index 6f2185d3b7..6050790c8f 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -498,8 +498,7 @@ Compass::Compass(void) // Default init method // -bool -Compass::init() +void Compass::init() { if (_compass_count == 0) { // detect available backends. Only called once @@ -518,7 +517,6 @@ Compass::init() for (uint8_t i=_compass_count; i