From b08034373ff29b5375e226a176b369649d3a88ba Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Thu, 28 Mar 2024 14:59:31 +0000 Subject: [PATCH] AP_Logger: `Write_VER` keep g++ 7.5 happy by removeing non-trivial designated initializers --- libraries/AP_Logger/AP_Logger_Backend.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Logger/AP_Logger_Backend.cpp b/libraries/AP_Logger/AP_Logger_Backend.cpp index 9d0ce4ad09..e0b0ecfb6c 100644 --- a/libraries/AP_Logger/AP_Logger_Backend.cpp +++ b/libraries/AP_Logger/AP_Logger_Backend.cpp @@ -575,7 +575,6 @@ bool AP_Logger_Backend::Write_VER() patch: fwver.patch, fw_type: fwver.fw_type, git_hash: fwver.fw_hash, - filter_version: AP_FILTER_VERSION, }; strncpy(pkt.fw_string, fwver.fw_string, ARRAY_SIZE(pkt.fw_string)-1); @@ -583,6 +582,8 @@ bool AP_Logger_Backend::Write_VER() pkt._APJ_BOARD_ID = APJ_BOARD_ID; #endif pkt.build_type = fwver.vehicle_type; + pkt.filter_version = AP_FILTER_VERSION; + return WriteCriticalBlock(&pkt, sizeof(pkt)); }