Pull out sleep and shutdown control into their own functions

This commit is contained in:
Ben V. Brown
2020-11-01 11:18:29 +11:00
parent ac9f863dba
commit a582af984e
2 changed files with 58 additions and 37 deletions

View File

@@ -22,7 +22,7 @@
#include "task.h"
#define MOVFilter 8
uint8_t accelInit = 0;
uint32_t lastMovementTime = 0;
TickType_t lastMovementTime = 0;
void detectAccelerometerVersion() {
#ifdef ACCEL_MMA
if (MMA8652FC::detect()) {