auto-detect accelerometer sensor (and don't fail build for lack of a temperature sensor)

This commit is contained in:
Joey Castillo
2025-05-16 00:07:15 -04:00
parent 55df80c3d9
commit c5bda0faeb
12 changed files with 63 additions and 92 deletions

View File

@@ -218,13 +218,10 @@ void countdown_face_activate(void *context) {
movement_request_tick_frequency(1);
quick_ticks_running = false;
#if HAS_ACCELEROMETER
if (state->mode != cd_running) {
if (state->mode != cd_running && movement_enable_tap_detection_if_available()) {
state->tap_detection_ticks = TAP_DETECTION_SECONDS;
state->has_tapped_once = false;
movement_enable_tap_detection_if_available();
}
#endif
}
bool countdown_face_loop(movement_event_t event, void *context) {