pico: initialize eeprom early
otherwise reading qmk settings fails
This commit is contained in:
parent
464ccfbc66
commit
bd702ab642
1 changed files with 1 additions and 2 deletions
|
|
@ -126,7 +126,7 @@ static void raw_hid_task(void) {
|
|||
|
||||
static void midi_ep_task(void) {}
|
||||
|
||||
void protocol_setup(void) { tusb_init(); }
|
||||
void protocol_setup(void) { EEPROM_Init(); tusb_init(); }
|
||||
|
||||
void protocol_pre_init(void) {
|
||||
// if (watchdog_caused_reboot() && watchdog_hw->scratch[0] == 0x2040dead) {
|
||||
|
|
@ -135,7 +135,6 @@ void protocol_pre_init(void) {
|
|||
watchdog_enable(8000, 1);
|
||||
watchdog_hw->scratch[0] = 0x2040dead;
|
||||
pico_cdc_enable_printf();
|
||||
EEPROM_Init();
|
||||
}
|
||||
|
||||
void protocol_post_init(void) { host_set_driver(&driver); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue