From e41faaa86998dd9854964ee231060294a2de0ea1 Mon Sep 17 00:00:00 2001 From: "Jasper v. Blanckenburg" Date: Tue, 6 Feb 2024 18:55:31 +0100 Subject: [PATCH] Initialize to 0 --- Core/Src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/Src/main.c b/Core/Src/main.c index 469dce7..485fa82 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -22,6 +22,7 @@ /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ +#include /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ @@ -121,6 +122,7 @@ int main(void) { /* Infinite loop */ /* USER CODE BEGIN WHILE */ uint16_t temperatures[N_SENSORS]; + memset(temperatures, 0, sizeof(temperatures)); while (1) { /* USER CODE END WHILE */