aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRichard Kjerstadius <[email protected]>2021-10-12 16:13:00 +0200
committerPete Johanson <[email protected]>2021-10-12 12:00:21 -0400
commita774ce855517fb9e74ca8c8ebef9cb85b7d65e6c (patch)
treee7ab95e259d23cb2b41b4945aac4358cacf94b0f
parentf221ff1dc7a8100ca8037f322033cb73c4575fd6 (diff)
downloadzmk-a774ce855517fb9e74ca8c8ebef9cb85b7d65e6c.tar.gz
zmk-a774ce855517fb9e74ca8c8ebef9cb85b7d65e6c.zip
fix(display): Increase char buffer size to fit all symbols
Recent refactoring of the font handling seems to have broken the display of the last symbol of the output status widget. From my analysis the last symbol is truncated because the buffer simply is too small. Increasing the buffer size to 9 fits all three possible symbols.
-rw-r--r--app/src/display/widgets/output_status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/display/widgets/output_status.c b/app/src/display/widgets/output_status.c
index 4c32faea13..89993c69cb 100644
--- a/app/src/display/widgets/output_status.c
+++ b/app/src/display/widgets/output_status.c
@@ -39,7 +39,7 @@ static struct output_status_state get_state(const zmk_event_t *_eh) {
}
static void set_status_symbol(lv_obj_t *label, struct output_status_state state) {
- char text[6] = {};
+ char text[9] = {};
switch (state.selected_endpoint) {
case ZMK_ENDPOINT_USB: