From d777da970be249462611f970aa7afa04ecc32ce1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 9 Apr 2018 16:04:17 +1000 Subject: [PATCH] AP_Baro: fixed multi-baro logging --- libraries/DataFlash/LogFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/DataFlash/LogFile.cpp b/libraries/DataFlash/LogFile.cpp index 2f329a333b..f888f85bb9 100644 --- a/libraries/DataFlash/LogFile.cpp +++ b/libraries/DataFlash/LogFile.cpp @@ -432,7 +432,7 @@ void DataFlash_Class::Log_Write_Baro_instance(uint64_t time_us, uint8_t baro_ins float drift_offset = baro.get_baro_drift_offset(); float ground_temp = baro.get_ground_temperature(); struct log_BARO pkt = { - LOG_PACKET_HEADER_INIT(LOG_BARO_MSG), + LOG_PACKET_HEADER_INIT(type), time_us : time_us, altitude : baro.get_altitude(baro_instance), pressure : baro.get_pressure(baro_instance),