diff --git a/ADIS_Sumo/Sumo/Maze.c b/ADIS_Sumo/Sumo/Maze.c index 740a827..b497075 100644 --- a/ADIS_Sumo/Sumo/Maze.c +++ b/ADIS_Sumo/Sumo/Maze.c @@ -53,11 +53,11 @@ static bool isSolved = FALSE; static bool useLeftHandOnTheWallRule = TRUE; static uint8_t presentCounter = 0; -uint8_t MAZE_ResetPresentCount(){ +void MAZE_ResetPresentCount(void){ presentCounter = 0; } -uint8_t MAZE_GetPresentCount(){ +uint8_t MAZE_GetPresentCount(void){ return presentCounter; } diff --git a/ADIS_Sumo/Sumo/Maze.h b/ADIS_Sumo/Sumo/Maze.h index bc7c9ad..c0c2d00 100644 --- a/ADIS_Sumo/Sumo/Maze.h +++ b/ADIS_Sumo/Sumo/Maze.h @@ -11,9 +11,10 @@ #if PL_CONFIG_APP_LINE_MAZE #include "Turn.h" -uint8_t MAZE_ResetPresentCount(); +void MAZE_ResetPresentCount(void); + +uint8_t MAZE_GetPresentCount(void); -uint8_t MAZE_GetPresentCount(); /*! * \brief Adds a new path while going forward through the maze * \param kind New path to be added