diff options
author | Drashna Jaelre <drashna@drashna.net> | 2023-05-08 10:56:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 10:56:03 -0700 |
commit | 5c4b53a1437adde49871752d8015bfc042b97c20 (patch) | |
tree | e67534e42cf3cdf95df869f8f66e23cfeba78524 /quantum/led_matrix | |
parent | 01be98184363591656ed6bd5baac21e6a5d61132 (diff) |
[Bug] Realign and size check EECONFIG structures (#20541)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum/led_matrix')
-rw-r--r-- | quantum/led_matrix/led_matrix_types.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/quantum/led_matrix/led_matrix_types.h b/quantum/led_matrix/led_matrix_types.h index 6d79a3592d..6709a558bb 100644 --- a/quantum/led_matrix/led_matrix_types.h +++ b/quantum/led_matrix/led_matrix_types.h @@ -85,13 +85,14 @@ typedef union { struct PACKED { uint8_t enable : 2; uint8_t mode : 6; - uint16_t reserved; uint8_t val; - uint8_t speed; // EECONFIG needs to be increased to support this + uint8_t speed; led_flags_t flags; }; } led_eeconfig_t; +_Static_assert(sizeof(led_eeconfig_t) == sizeof(uint32_t), "LED Matrix EECONFIG out of spec."); + #if defined(_MSC_VER) # pragma pack(pop) #endif |