mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
fix(display): Adding length check to layer_label in nice_view status widget.
This commit is contained in:
@@ -179,7 +179,7 @@ static void draw_bottom(lv_obj_t *widget, lv_color_t cbuf[], const struct status
|
||||
lv_canvas_draw_rect(canvas, 0, 0, CANVAS_SIZE, CANVAS_SIZE, &rect_black_dsc);
|
||||
|
||||
// Draw layer
|
||||
if (state->layer_label == NULL) {
|
||||
if (state->layer_label == NULL || strlen(state->layer_label) == 0) {
|
||||
char text[10] = {};
|
||||
|
||||
sprintf(text, "LAYER %i", state->layer_index);
|
||||
|
||||
Reference in New Issue
Block a user