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/backlight | |
parent | 01be98184363591656ed6bd5baac21e6a5d61132 (diff) |
[Bug] Realign and size check EECONFIG structures (#20541)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum/backlight')
-rw-r--r-- | quantum/backlight/backlight.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/backlight/backlight.h b/quantum/backlight/backlight.h index ff9c8de420..85812bff3a 100644 --- a/quantum/backlight/backlight.h +++ b/quantum/backlight/backlight.h @@ -44,6 +44,8 @@ typedef union { }; } backlight_config_t; +_Static_assert(sizeof(backlight_config_t) == sizeof(uint8_t), "Backlight EECONFIG out of spec."); + void backlight_init(void); void backlight_toggle(void); void backlight_enable(void); |