mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Logger: make LogStructure non-packed to fix compilation of SITL on Apple M1
This commit is contained in:
parent
fb63ad6b72
commit
f91ea8a0dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user