lcd autodetect: use buttons as a backup option

This commit is contained in:
Joey Castillo
2025-03-15 09:48:53 -04:00
parent e9ede6f060
commit c1efea4db7
2 changed files with 21 additions and 1 deletions

View File

@@ -672,6 +672,9 @@ void app_setup(void) {
watch_rtc_register_alarm_callback(cb_alarm_fired, alarm_time, ALARM_MATCH_SS);
}
// LCD autodetect uses the buttons as a a failsafe, so we should run it before we enable the button interrupts
watch_enable_display();
if (movement_state.le_mode_ticks != -1) {
watch_disable_extwake_interrupt(HAL_GPIO_BTN_ALARM_pin());
@@ -740,7 +743,6 @@ void app_setup(void) {
watch_enable_buzzer();
watch_enable_leds();
watch_enable_display();
movement_request_tick_frequency(1);