extend power statemachine
This commit is contained in:
@@ -6,18 +6,20 @@
|
||||
|
||||
#include "LITTLEFS.h"
|
||||
|
||||
class OtaProcess_class : public processClass
|
||||
{
|
||||
typedef enum{
|
||||
otaInit,
|
||||
otaConnect,
|
||||
otaSetup,
|
||||
otaStart,
|
||||
otaInitDone,
|
||||
otaStart,
|
||||
otaBusy,
|
||||
otaDone,
|
||||
otaError
|
||||
}OTASTATES;
|
||||
class OtaProcess_class : public processClass
|
||||
{
|
||||
|
||||
|
||||
OTASTATES m_otaState = otaInit;
|
||||
|
||||
void active(void);
|
||||
bool initialize(void);
|
||||
@@ -28,7 +30,12 @@ class OtaProcess_class : public processClass
|
||||
|
||||
public:
|
||||
OtaProcess_class(uint32_t timeout):processClass(timeout){}
|
||||
|
||||
OTASTATES m_otaState = otaInit;
|
||||
|
||||
};
|
||||
|
||||
void initOta(void);
|
||||
void handleOta(void);
|
||||
void handleOta(void);
|
||||
OTASTATES getOtaState(void);
|
||||
void otaEnable(void);
|
||||
Reference in New Issue
Block a user