clean up statemachine and simplify sensor
This commit is contained in:
@@ -9,17 +9,19 @@
|
||||
#include "power.h"
|
||||
|
||||
#define TIMEOUT_IDLE 20000
|
||||
#define TIMEOUT_ARMED 10000
|
||||
|
||||
typedef enum{
|
||||
stateInit,
|
||||
stateIdle,
|
||||
stateScanning,
|
||||
stateArmed,
|
||||
stateStartPlaying,
|
||||
statePlaying,
|
||||
stateStopPlaying,
|
||||
stateStopped,
|
||||
stateLAST
|
||||
}GamneStates;
|
||||
}GameStates;
|
||||
|
||||
void initGame(void);
|
||||
void handleGame(void);
|
||||
@@ -27,3 +29,6 @@ bool hallIsIdle(void);
|
||||
|
||||
void handleHallSensor(void);
|
||||
|
||||
String StateToString(GameStates state);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user