move activity logging into Movement core

This commit is contained in:
Joey Castillo
2025-03-12 22:59:53 -04:00
parent 90bb34efd1
commit 185b9b1b97
6 changed files with 155 additions and 83 deletions

View File

@@ -43,6 +43,8 @@
#include "lis2dw.h"
#include "tc.h"
#include "evsys.h"
#include "delay.h"
#include "movement_activity.h"
#include "movement_config.h"
@@ -170,6 +172,10 @@ static void _movement_handle_top_of_minute(void) {
movement_request_sleep();
}
}
if ((date_time.unit.minute % 5) == 0) {
_movement_log_data();
}
#endif
// update the DST offset cache every 30 minutes, since someplace in the world could change.