summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorDasky <32983009+daskygit@users.noreply.github.com>2025-06-03 13:03:59 +0100
committerGitHub <noreply@github.com>2025-06-03 13:03:59 +0100
commit8525ab03de3b818dcd23d257d7a7f382d1aad35c (patch)
tree03056623b9553b7f25917744bcc05610caea09c9 /quantum
parentfaf77f1651f7660c55f7a8f2a7b653808a29e0e3 (diff)
Fix dynamic keymap static assert (#25327)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/nvm/eeprom/nvm_dynamic_keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/nvm/eeprom/nvm_dynamic_keymap.c b/quantum/nvm/eeprom/nvm_dynamic_keymap.c
index 3e315f2bcb..5ff49795b2 100644
--- a/quantum/nvm/eeprom/nvm_dynamic_keymap.c
+++ b/quantum/nvm/eeprom/nvm_dynamic_keymap.c
@@ -57,7 +57,7 @@ STATIC_ASSERT(DYNAMIC_KEYMAP_EEPROM_MAX_ADDR <= 65535, "DYNAMIC_KEYMAP_EEPROM_MA
57// The keyboard should override DYNAMIC_KEYMAP_LAYER_COUNT to reduce it, 57// The keyboard should override DYNAMIC_KEYMAP_LAYER_COUNT to reduce it,
58// or DYNAMIC_KEYMAP_EEPROM_MAX_ADDR to increase it, *only if* the microcontroller has 58// or DYNAMIC_KEYMAP_EEPROM_MAX_ADDR to increase it, *only if* the microcontroller has
59// more than the default. 59// more than the default.
60STATIC_ASSERT((DYNAMIC_KEYMAP_EEPROM_MAX_ADDR) - (DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR) >= 100, "Dynamic keymaps are configured to use more EEPROM than is available."); 60STATIC_ASSERT((int64_t)(DYNAMIC_KEYMAP_EEPROM_MAX_ADDR) - (int64_t)(DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR) >= 100, "Dynamic keymaps are configured to use more EEPROM than is available.");
61 61
62#ifndef TOTAL_EEPROM_BYTE_COUNT 62#ifndef TOTAL_EEPROM_BYTE_COUNT
63# error Unknown total EEPROM size. Cannot derive maximum for dynamic keymaps. 63# error Unknown total EEPROM size. Cannot derive maximum for dynamic keymaps.