]> git.earman.xyz Git - sensor-watch.git/commitdiff
display detection: return straight away if LCD type was forced
authorJoey Castillo <joeycastillo@utexas.edu>
Mon, 19 May 2025 01:19:12 +0000 (21:19 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Mon, 19 May 2025 01:19:12 +0000 (21:19 -0400)
watch-library/hardware/watch/watch_slcd.c

index eddc0b5daf937a57938ed7a61468839432fdce39..db6b1942c5690a359f2a49952444c33b1a6d07c3 100644 (file)
@@ -48,10 +48,11 @@ static watch_lcd_type_t _installed_display = WATCH_LCD_TYPE_UNKNOWN;
 void watch_discover_lcd_type(void) {
     #if defined(FORCE_CUSTOM_LCD_TYPE)
     _installed_display = WATCH_LCD_TYPE_CUSTOM;
-    goto valid_display_detected;
+    _watch_update_indicator_segments();
+    return;
     #elif defined(FORCE_CLASSIC_LCD_TYPE)
     _installed_display = WATCH_LCD_TYPE_CLASSIC;
-    goto valid_display_detected;
+    return;
     #endif
 
     // Don't bother detecting the LCD type if we're plugged into USB.