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

@@ -30,8 +30,6 @@
#include "movement_activity.h"
#include "watch_utility.h"
#ifdef HAS_ACCELEROMETER
static void _activity_logging_face_update_display(activity_logging_state_t *state, bool clock_mode_24h) {
char buf[8];
uint32_t count = 0;
@@ -164,5 +162,3 @@ bool activity_logging_face_loop(movement_event_t event, void *context) {
void activity_logging_face_resign(void *context) {
(void) context;
}
#endif

View File

@@ -26,8 +26,6 @@
#include "pins.h"
#ifdef HAS_ACCELEROMETER
/*
* ACTIVITY LOGGING
*
@@ -77,5 +75,3 @@ movement_watch_face_advisory_t activity_logging_face_advise(void *context);
activity_logging_face_resign, \
NULL, \
})
#endif // HAS_TEMPERATURE_SENSOR