removed mazeFailure variable

main
Jonas Arnold 4 years ago
parent 4ea95e402c
commit 2209e1c656
  1. 6
      ADIS_Sumo/Sumo/Application.c

@ -215,7 +215,7 @@ static unsigned char *AppStateString(AppStateType state) {
static void StateMachine(bool buttonPress) {
#if PL_CONFIG_USE_LINE_SENSOR
static uint8_t cnt;
static uint8_t mazeFailure;
// static uint8_t mazeFailure;
static uint8_t presentCnt;
#endif
// TODO: send appstate via Mqtt
@ -368,7 +368,7 @@ static void StateMachine(bool buttonPress) {
// send to mqtt AUTO
// SHELL_SendString((unsigned char*)"AUTO!!!\r\n");
mazeFailure = 0;
// mazeFailure = 0;
MAZE_ResetPresentCount();
presentCnt = 0;
MAZE_ClearSolution();
@ -388,7 +388,7 @@ static void StateMachine(bool buttonPress) {
McuShell_SendStr((unsigned char*)"mqtt publish \"/mobile/status/mode/\" \"FINAL\"\r\n", McuESP32_GetTxToESPStdio()->stdOut);
// McuShell_SendStr((unsigned char*)"\r\n", McuESP32_GetTxToESPStdio()->stdOut);
appState = APP_STATE_IDLE;
mazeFailure=0;
// mazeFailure=0;
}else if(!LF_IsFollowing() && !MAZE_IsSolved()){// && mazeFailure < 5){
// failed
// mazeFailure++;

Loading…
Cancel
Save