From 867d491be4c85df838893291fb927f21e6301ebb Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:53:30 -0600 Subject: [PATCH] fix compile warnings - HelioSpring, Strix, Mode2Flux packed alignment of 4 same as unint32 --- src/main/drivers/accgyro/accgyro_imuf9001.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/drivers/accgyro/accgyro_imuf9001.h b/src/main/drivers/accgyro/accgyro_imuf9001.h index aed9cd1d18..6183c49d79 100644 --- a/src/main/drivers/accgyro/accgyro_imuf9001.h +++ b/src/main/drivers/accgyro/accgyro_imuf9001.h @@ -56,7 +56,7 @@ typedef struct imufCommand { uint32_t param10; uint32_t crc; uint32_t tail; -} __attribute__ ((__packed__)) imufCommand_t; +} __attribute__ ((__packed__, aligned(4))) imufCommand_t; typedef struct imufData { float gyroX;