extend power statemachine
This commit is contained in:
@@ -6,11 +6,14 @@
|
||||
#include "Battery.h"
|
||||
#include "sensor.h"
|
||||
#include "audio.h"
|
||||
#include "ota.h"
|
||||
#include "led.h"
|
||||
|
||||
|
||||
#define TIMEOUT_POWER (5 * 1000 * 60) //5minutes timeout
|
||||
#define POWERBUTTONDELAY 1000
|
||||
#define BATTERYMEASUREDELAY 60000
|
||||
#define POWERBUTTONOTADELAY 10000
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@@ -22,7 +25,9 @@ typedef enum
|
||||
poweringOff,
|
||||
poweringOff2,
|
||||
timeOut,
|
||||
lowBatt
|
||||
lowBatt,
|
||||
overTheAir,
|
||||
overTheAir2
|
||||
} POWERSTATES;
|
||||
|
||||
POWERSTATES getPowerState( void );
|
||||
|
||||
Reference in New Issue
Block a user