From 0185b5697245190e031d2eb2aa26c4abd64a9178 Mon Sep 17 00:00:00 2001 From: joeycastillo Date: Sun, 29 Sep 2024 22:52:21 -0400 Subject: [PATCH] custom LCD: fix garbled text in top row when using WATCH_POSITION_FULL --- watch-library/shared/watch/watch_common_display.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/watch-library/shared/watch/watch_common_display.c b/watch-library/shared/watch/watch_common_display.c index 4b2d03fd..4e7184f2 100644 --- a/watch-library/shared/watch/watch_common_display.c +++ b/watch-library/shared/watch/watch_common_display.c @@ -205,6 +205,9 @@ void watch_display_text(watch_position_t location, const char *string) { #pragma GCC diagnostic ignored "-Wdeprecated-declarations" watch_display_string(string, 0); #pragma GCC diagnostic pop + #ifdef USE_CUSTOM_LCD + watch_display_character(' ', 10); + #endif } } @@ -254,14 +257,9 @@ void watch_display_text_with_fallback(watch_position_t location, const char *str case WATCH_POSITION_HOURS: case WATCH_POSITION_MINUTES: case WATCH_POSITION_SECONDS: + case WATCH_POSITION_FULL: watch_display_text(location, string); break; - case WATCH_POSITION_FULL: - // This is deprecated, but we use it for the legacy behavior. - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wdeprecated-declarations" - watch_display_string(string, 0); - #pragma GCC diagnostic pop } #else (void)string;