Skip to content

Commit

Permalink
AP_Logger: Write_VER keep g++ 7.5 happy by removeing non-trivial de…
Browse files Browse the repository at this point in the history
…signated initializers
  • Loading branch information
IamPete1 authored and tridge committed Apr 2, 2024
1 parent afe257a commit b080343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/AP_Logger/AP_Logger_Backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,14 +575,15 @@ 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);

#ifdef APJ_BOARD_ID
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));
}

Expand Down

0 comments on commit b080343

Please sign in to comment.