diff options
author | QMK Bot <[email protected]> | 2022-08-28 06:14:30 +0000 |
---|---|---|
committer | QMK Bot <[email protected]> | 2022-08-28 06:14:30 +0000 |
commit | 6a28ceefcda58ec530469ac98c38b970ba4780ab (patch) | |
tree | 754d73c85837c5aefa3ab953caea472862840a09 /quantum | |
parent | 1258fdb9eeb4a6d6c2edeeb77e56da10fa525376 (diff) | |
parent | efdd4f4d50e09e0f71d09333d15acf197406a09c (diff) | |
download | qmk_firmware-6a28ceefcda58ec530469ac98c38b970ba4780ab.tar.gz qmk_firmware-6a28ceefcda58ec530469ac98c38b970ba4780ab.zip |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/keymap_introspection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/keymap_introspection.c b/quantum/keymap_introspection.c index 7a96f802ef..179b5eb037 100644 --- a/quantum/keymap_introspection.c +++ b/quantum/keymap_introspection.c @@ -17,6 +17,8 @@ uint8_t keymap_layer_count(void) { return NUM_KEYMAP_LAYERS; } +_Static_assert(NUM_KEYMAP_LAYERS <= MAX_LAYER, "Number of keymap layers exceeds maximum set by LAYER_STATE_(8|16|32)BIT"); + #if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE) # define NUM_ENCODERMAP_LAYERS ((uint8_t)(sizeof(encoder_map) / ((NUM_ENCODERS) * (2) * sizeof(uint16_t)))) |