From 37c56296eb4f800bd02899bfde6e7a5c34ff7642 Mon Sep 17 00:00:00 2001 From: Eric Tang Date: Thu, 13 Jul 2017 19:35:37 -0700 Subject: [PATCH] Display the abbreviation of a keymap when it is being applied --- right/src/config/parse_keymap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/right/src/config/parse_keymap.c b/right/src/config/parse_keymap.c index 75442ae..85af313 100644 --- a/right/src/config/parse_keymap.c +++ b/right/src/config/parse_keymap.c @@ -1,6 +1,7 @@ #include "config/parse_keymap.h" #include "key_action.h" #include "current_keymap.h" +#include "led_display.h" static bool isDryRun; @@ -180,13 +181,15 @@ parser_error_t ParseKeymap(serialized_buffer_t *buffer) {; const char *description = readString(buffer, &descriptionLen); uint16_t layerCount = readCompactLength(buffer); - (void)abbreviation; (void)name; (void)description; if (layerCount != LAYER_COUNT) { return ParserError_InvalidLayerCount; } isDryRun = !isDefault; + if (!isDryRun) { + LedDisplay_SetText(abbreviationLen, abbreviation); + } for (uint16_t layerIdx = 0; layerIdx < layerCount; layerIdx++) { errorCode = parseLayer(buffer, layerIdx); if (errorCode != ParserError_Success) {