auto-detect accelerometer sensor (and don't fail build for lack of a temperature sensor)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user