display detection: return straight away if LCD type was forced

This commit is contained in:
Joey Castillo 2025-05-18 21:19:12 -04:00
parent 5691a3f4f1
commit 616bb08720

View File

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