Skip to content

Commit

Permalink
[Core] DYNAMIC_KEYMAP_EEPROM_MAX_ADDR check (qmk#10315)
Browse files Browse the repository at this point in the history
* add error check

* remove quotes

* update error message

Co-authored-by: Ryan <[email protected]>

Co-authored-by: Ryan <[email protected]>
  • Loading branch information
Xelus22 and fauxpark authored Sep 16, 2020
1 parent 7143b5a commit 3babe3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions quantum/dynamic_keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
# endif
#endif

// Due to usage of uint16_t check for max 65535
#if DYNAMIC_KEYMAP_EEPROM_MAX_ADDR > 65535
# error DYNAMIC_KEYMAP_EEPROM_MAX_ADDR must be less than 65536
#endif

// If DYNAMIC_KEYMAP_EEPROM_ADDR not explicitly defined in config.h,
// default it start after VIA_EEPROM_CUSTOM_ADDR+VIA_EEPROM_CUSTOM_SIZE
#ifndef DYNAMIC_KEYMAP_EEPROM_ADDR
Expand Down

0 comments on commit 3babe3a

Please sign in to comment.