From 4f00dfa69af236b1ea5cf06f5f60bbf06bd9cda0 Mon Sep 17 00:00:00 2001 From: xianglunkai <1322099375@qq.com> Date: Wed, 25 Oct 2023 12:04:50 +0800 Subject: [PATCH] correct the filling order of the struct, otherwise it may cause compilation errors --- libraries/AP_Logger/AP_Logger_Backend.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/AP_Logger/AP_Logger_Backend.cpp b/libraries/AP_Logger/AP_Logger_Backend.cpp index 57f8792bdb..f938254a3a 100644 --- a/libraries/AP_Logger/AP_Logger_Backend.cpp +++ b/libraries/AP_Logger/AP_Logger_Backend.cpp @@ -574,14 +574,13 @@ bool AP_Logger_Backend::Write_VER() patch: fwver.patch, fw_type: fwver.fw_type, git_hash: fwver.fw_hash, - build_type: fwver.vehicle_type, }; strncpy(pkt.fw_string, fwver.fw_string, ARRAY_SIZE(pkt.fw_string)-1); #ifdef APJ_BOARD_ID pkt._APJ_BOARD_ID = APJ_BOARD_ID; #endif - + pkt.build_type = fwver.vehicle_type; return WriteCriticalBlock(&pkt, sizeof(pkt)); }