[Core] DYNAMIC_KEYMAP_EEPROM_MAX_ADDR check (#10315)
* add error check * remove quotes * update error message Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
parent
06d4c0a396
commit
97122d203b
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@
|
||||||
# endif
|
# endif
|
||||||
#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,
|
// If DYNAMIC_KEYMAP_EEPROM_ADDR not explicitly defined in config.h,
|
||||||
// default it start after VIA_EEPROM_CUSTOM_ADDR+VIA_EEPROM_CUSTOM_SIZE
|
// default it start after VIA_EEPROM_CUSTOM_ADDR+VIA_EEPROM_CUSTOM_SIZE
|
||||||
#ifndef DYNAMIC_KEYMAP_EEPROM_ADDR
|
#ifndef DYNAMIC_KEYMAP_EEPROM_ADDR
|
||||||
|
|
Loading…
Reference in a new issue