From ecf7757bd38ffa5dd2c6e05666b339c4070d6e00 Mon Sep 17 00:00:00 2001 From: din Date: Sun, 30 Mar 2025 08:19:55 -0500 Subject: [PATCH] swap to pragma for MSVC --- src/arch/Lights/LightsDriver_PacDrive.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/arch/Lights/LightsDriver_PacDrive.h b/src/arch/Lights/LightsDriver_PacDrive.h index 4ddaeff171..f706afa925 100644 --- a/src/arch/Lights/LightsDriver_PacDrive.h +++ b/src/arch/Lights/LightsDriver_PacDrive.h @@ -35,6 +35,8 @@ #define PACDRIVE_HIDREPORT_SIZE 5 #define PACDRIVE_HIDREPORT_ID 0x00 +#pragma pack(push, 1) + typedef union { struct @@ -55,10 +57,12 @@ typedef union bool led14 : 1; bool led15 : 1; bool led16 : 1; - } __attribute__((packed)); + }; uint16_t raw; } pacdrive_leds_t; +#pragma pack(pop) + typedef union { struct @@ -67,7 +71,7 @@ typedef union uint8_t pad0; uint8_t pad1; pacdrive_leds_t leds; - } __attribute__((packed)); + }; uint8_t raw_state[PACDRIVE_HIDREPORT_SIZE]; } pacdrive_state_t;