Display the abbreviation of a keymap when it is being applied
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#include "config/parse_keymap.h"
|
#include "config/parse_keymap.h"
|
||||||
#include "key_action.h"
|
#include "key_action.h"
|
||||||
#include "current_keymap.h"
|
#include "current_keymap.h"
|
||||||
|
#include "led_display.h"
|
||||||
|
|
||||||
static bool isDryRun;
|
static bool isDryRun;
|
||||||
|
|
||||||
@@ -180,13 +181,15 @@ parser_error_t ParseKeymap(serialized_buffer_t *buffer) {;
|
|||||||
const char *description = readString(buffer, &descriptionLen);
|
const char *description = readString(buffer, &descriptionLen);
|
||||||
uint16_t layerCount = readCompactLength(buffer);
|
uint16_t layerCount = readCompactLength(buffer);
|
||||||
|
|
||||||
(void)abbreviation;
|
|
||||||
(void)name;
|
(void)name;
|
||||||
(void)description;
|
(void)description;
|
||||||
if (layerCount != LAYER_COUNT) {
|
if (layerCount != LAYER_COUNT) {
|
||||||
return ParserError_InvalidLayerCount;
|
return ParserError_InvalidLayerCount;
|
||||||
}
|
}
|
||||||
isDryRun = !isDefault;
|
isDryRun = !isDefault;
|
||||||
|
if (!isDryRun) {
|
||||||
|
LedDisplay_SetText(abbreviationLen, abbreviation);
|
||||||
|
}
|
||||||
for (uint16_t layerIdx = 0; layerIdx < layerCount; layerIdx++) {
|
for (uint16_t layerIdx = 0; layerIdx < layerCount; layerIdx++) {
|
||||||
errorCode = parseLayer(buffer, layerIdx);
|
errorCode = parseLayer(buffer, layerIdx);
|
||||||
if (errorCode != ParserError_Success) {
|
if (errorCode != ParserError_Success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user