From 24db4921315f74403e1062b24e24eed52daf16c2 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 13 Aug 2014 21:43:31 +0900 Subject: [PATCH] Baro_MS5611: use healthy flag --- libraries/AP_Baro/AP_Baro_MS5611.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Baro/AP_Baro_MS5611.cpp b/libraries/AP_Baro/AP_Baro_MS5611.cpp index 3a6c8541de..887e2f39b1 100644 --- a/libraries/AP_Baro/AP_Baro_MS5611.cpp +++ b/libraries/AP_Baro/AP_Baro_MS5611.cpp @@ -340,12 +340,12 @@ bool AP_Baro_MS5611::init() if (hal.scheduler->millis() - tstart > 1000) { hal.scheduler->panic(PSTR("PANIC: AP_Baro_MS5611 took more than " "1000ms to initialize")); - healthy = false; + _flags.healthy = false; return false; } } - healthy = true; + _flags.healthy = true; return true; }