move activity logging into Movement core
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user