don't run LCD discovery if display is already running

This commit is contained in:
Joey Castillo 2025-03-15 09:35:58 -04:00
parent 5fa939786a
commit f52b150c0b

View File

@ -128,6 +128,10 @@ watch_lcd_type_t watch_get_lcd_type(void) {
}
void watch_enable_display(void) {
// No need to do anything if the display is already enabled.
/// TODO: Wrap this in a gossamer call.
if (SLCD->CTRLA.bit.ENABLE) return;
watch_discover_lcd_type();
HAL_GPIO_SLCD0_pmuxen(HAL_GPIO_PMUX_B);