From c8d874676f51a9f2c309997d17cdb7d32ee16409 Mon Sep 17 00:00:00 2001 From: giacomo892 Date: Fri, 18 Dec 2020 10:04:54 +0100 Subject: [PATCH] AP_Periph: MSP fix last baro ms --- Tools/AP_Periph/msp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/AP_Periph/msp.cpp b/Tools/AP_Periph/msp.cpp index c8c2de118c..02492ea540 100644 --- a/Tools/AP_Periph/msp.cpp +++ b/Tools/AP_Periph/msp.cpp @@ -128,12 +128,12 @@ void AP_Periph_FW::send_msp_baro(void) if (msp.last_baro_ms == baro.get_last_update(0)) { return; } - msp.last_baro_ms = baro.get_last_update(0); if (!baro.healthy()) { // don't send any data return; } - + msp.last_baro_ms = baro.get_last_update(0); + p.instance = 0; p.time_ms = msp.last_baro_ms; p.pressure_pa = baro.get_pressure();