AP_Logger: make LogStructure non-packed to fix compilation of SITL on Apple M1

This commit is contained in:
Tamas Nepusz 2022-05-06 23:56:05 +02:00 committed by Andrew Tridgell
parent fb63ad6b72
commit f91ea8a0dd

View File

@ -141,7 +141,14 @@ const struct MultiplierStructure log_Multipliers[] = {
#include <AP_RPM/LogStructure.h>
// structure used to define logging format
// It is packed on ChibiOS to save flash space; however, this causes problems
// when building the SITL on an Apple M1 CPU (and is also slower) so we do not
// pack it by default
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
struct PACKED LogStructure {
#else
struct LogStructure {
#endif
uint8_t msg_type;
uint8_t msg_len;
const char *name;