fix(display): Check layer name length too.

This commit is contained in:
Peter Johanson
2024-09-20 16:37:10 -06:00
committed by Pete Johanson
parent cca637d66e
commit 11f600d9e5
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ static void set_layer_symbol(lv_obj_t *label, struct layer_status_state state) {
const char *layer_label = state.label;
zmk_keymap_layer_index_t active_layer_index = state.index;
if (layer_label == NULL) {
if (layer_label == NULL || strlen(layer_label) == 0) {
char text[6] = {};
sprintf(text, " %i", active_layer_index);