don't run LCD discovery if display is already running
This commit is contained in:
parent
5fa939786a
commit
f52b150c0b
@ -128,6 +128,10 @@ watch_lcd_type_t watch_get_lcd_type(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void watch_enable_display(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();
|
watch_discover_lcd_type();
|
||||||
|
|
||||||
HAL_GPIO_SLCD0_pmuxen(HAL_GPIO_PMUX_B);
|
HAL_GPIO_SLCD0_pmuxen(HAL_GPIO_PMUX_B);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user