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:
@@ -1,6 +1,7 @@
|
||||
#include "led_display.h"
|
||||
#include "slave_drivers/is31fl3731_driver.h"
|
||||
#include "layer.h"
|
||||
#include "keymap.h"
|
||||
|
||||
static const uint16_t capitalLetterToSegmentSet[] = {
|
||||
0b0000000011110111,
|
||||
@@ -78,6 +79,12 @@ void LedDisplay_SetText(uint8_t length, const char* text) {
|
||||
}
|
||||
}
|
||||
|
||||
void LedDisplay_SetCurrentKeymapText(void)
|
||||
{
|
||||
keymap_reference_t *currentKeymap = AllKeymaps + CurrentKeymapIndex;
|
||||
LedDisplay_SetText(currentKeymap->abbreviationLen, currentKeymap->abbreviation);
|
||||
}
|
||||
|
||||
void LedDisplay_SetLayer(uint8_t layerId) {
|
||||
for (uint8_t i = 13; i <= 45; i += 16) {
|
||||
LedDriverValues[LedDriverId_Left][i] = 0;
|
||||
|
||||
Reference in New Issue
Block a user