From 9cbe5bb9b9de6413a4a45bd27728c4bf4505e25d Mon Sep 17 00:00:00 2001 From: Jonas Arnold Date: Sun, 18 Dec 2022 16:43:50 +0100 Subject: [PATCH] fixed warning in Sumo project --- ADIS_Sumo/Sumo/Maze.c | 4 ++-- ADIS_Sumo/Sumo/Maze.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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