From bf25776a668c7d59a8176642d5c7cce3f5b9f549 Mon Sep 17 00:00:00 2001 From: Konrad Rieck Date: Mon, 27 Jul 2026 22:12:22 +0200 Subject: [PATCH] Fix wrong format specifier for axis label _monitor_display() used %C (wide character, expects wint_t) instead of %c (plain char/int) to print the X/Y/Z axis label. Every other single-character display in the codebase uses %c; on the embedded build, without wide-char support in the C library, %C is not a valid conversion for the char actually being passed. --- watch-faces/sensor/lis2dw_monitor_face.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch-faces/sensor/lis2dw_monitor_face.c b/watch-faces/sensor/lis2dw_monitor_face.c index 3934fa59..7c7d8327 100644 --- a/watch-faces/sensor/lis2dw_monitor_face.c +++ b/watch-faces/sensor/lis2dw_monitor_face.c @@ -384,7 +384,7 @@ static void _monitor_display(lis2dw_monitor_state_t *state) { char buf[10]; - snprintf(buf, sizeof(buf), " %C ", "XYZ"[state->axis]); + snprintf(buf, sizeof(buf), " %c ", "XYZ"[state->axis]); watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, buf, buf); snprintf(buf, sizeof(buf), "%2d", state->axis + 1);