]> git.earman.xyz Git - sensor-watch.git/commitdiff
custom LCD: fix garbled text in top row when using WATCH_POSITION_FULL
authorjoeycastillo <joeycastillo@utexas.edu>
Mon, 30 Sep 2024 02:52:21 +0000 (22:52 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Mon, 30 Sep 2024 02:53:54 +0000 (22:53 -0400)
watch-library/shared/watch/watch_common_display.c

index 4b2d03fdc508a726a99dec8992a3d1b8654aa526..4e7184f265d22ea1d1ed9ebadc1064d4ad4a4c39 100644 (file)
@@ -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;