Add LedDisplay_SetCurrentKeymapText() and use it when reinitializaing the LED display upon disconnect. This fixes the bug that shows FTY on the display upon I2C watchdog recoveries.

This commit is contained in:
László Monda
2017-11-09 20:59:51 +01:00
parent c2efb5e0d0
commit b8846cd601
4 changed files with 10 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ void SwitchKeymap(uint8_t index)
CurrentKeymapIndex = index;
ValidatedUserConfigBuffer.offset = AllKeymaps[index].offset;
ParseKeymap(&ValidatedUserConfigBuffer, index, AllKeymapsCount, AllMacrosCount);
LedDisplay_SetText(AllKeymaps[index].abbreviationLen, AllKeymaps[index].abbreviation);
LedDisplay_SetCurrentKeymapText();
}
// The factory keymap is initialized before it gets overwritten by the default keymap of the EEPROM.