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
2 people authored and drashna committed Sep 30, 2020
1 parent edbb2c5 commit 99951c1
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 @@ -41,6 +41,11 @@
# define DYNAMIC_KEYMAP_EEPROM_MAX_ADDR 1023
#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 99951c1

Please sign in to comment.