extend power statemachine

This commit is contained in:
2022-01-02 18:50:22 +01:00
parent 7509858aa4
commit c340ab9d2a
8 changed files with 178 additions and 39 deletions

View File

@@ -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 );