From 9f2264a9709f3845d47f6ba6c758fc0289ed9e01 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 23 May 2023 12:58:51 +0200 Subject: [PATCH] Do not repeat NMA messages --- src/core/system_parameters/galileo_inav_message.cc | 3 ++- src/core/system_parameters/galileo_inav_message.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/system_parameters/galileo_inav_message.cc b/src/core/system_parameters/galileo_inav_message.cc index d852d9405..581f55a7f 100644 --- a/src/core/system_parameters/galileo_inav_message.cc +++ b/src/core/system_parameters/galileo_inav_message.cc @@ -1405,8 +1405,9 @@ int32_t Galileo_Inav_Message::page_jk_decoder(const char* data_jk) } -OSNMA_msg Galileo_Inav_Message::get_osnma_msg() const +OSNMA_msg Galileo_Inav_Message::get_osnma_msg() { + nma_position_filled = std::array{}; return nma_msg; } diff --git a/src/core/system_parameters/galileo_inav_message.h b/src/core/system_parameters/galileo_inav_message.h index 1d986a1b4..043b05a14 100644 --- a/src/core/system_parameters/galileo_inav_message.h +++ b/src/core/system_parameters/galileo_inav_message.h @@ -124,7 +124,7 @@ public: /* * \brief Returns an OSNMA_msg object filled with the latest NMA message received. Resets msg buffer. */ - OSNMA_msg get_osnma_msg() const; + OSNMA_msg get_osnma_msg(); inline bool get_flag_CRC_test() const {