core: Fix bootmagic for NKRO
This commit is contained in:
parent
0905d79769
commit
66da6f4d64
1 changed files with 5 additions and 0 deletions
|
|
@ -2,13 +2,18 @@
|
|||
#include <stdbool.h>
|
||||
#include <avr/eeprom.h>
|
||||
#include "eeconfig.h"
|
||||
#include "keymap.h"
|
||||
|
||||
void eeconfig_init(void)
|
||||
{
|
||||
eeprom_write_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER);
|
||||
eeprom_write_byte(EECONFIG_DEBUG, 0);
|
||||
eeprom_write_byte(EECONFIG_DEFAULT_LAYER, 0);
|
||||
#if defined(NKRO_ENABLE) || defined(NKRO_6KRO_ENABLE)
|
||||
eeprom_write_byte(EECONFIG_KEYMAP, ((keymap_config_t) { .nkro = 1 }).raw);
|
||||
#else
|
||||
eeprom_write_byte(EECONFIG_KEYMAP, 0);
|
||||
#endif
|
||||
eeprom_write_byte(EECONFIG_MOUSEKEY_ACCEL, 0);
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
eeprom_write_byte(EECONFIG_BACKLIGHT, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue