From 2209e1c656258ad4371192602492fd2957e00cb3 Mon Sep 17 00:00:00 2001 From: Jonas Arnold Date: Fri, 23 Dec 2022 14:38:33 +0100 Subject: [PATCH] removed mazeFailure variable --- ADIS_Sumo/Sumo/Application.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ADIS_Sumo/Sumo/Application.c b/ADIS_Sumo/Sumo/Application.c index 5affd20..7deae78 100644 --- a/ADIS_Sumo/Sumo/Application.c +++ b/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++;