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 06d4c0a commit 97122d2
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 97122d2

Please sign in to comment.