Initialize to 0
This commit is contained in:
parent
414e2e149d
commit
e41faaa869
|
@ -22,6 +22,7 @@
|
||||||
/* Private includes ----------------------------------------------------------*/
|
/* Private includes ----------------------------------------------------------*/
|
||||||
/* USER CODE BEGIN Includes */
|
/* USER CODE BEGIN Includes */
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
/* USER CODE END Includes */
|
/* USER CODE END Includes */
|
||||||
|
|
||||||
/* Private typedef -----------------------------------------------------------*/
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
|
@ -121,6 +122,7 @@ int main(void) {
|
||||||
/* Infinite loop */
|
/* Infinite loop */
|
||||||
/* USER CODE BEGIN WHILE */
|
/* USER CODE BEGIN WHILE */
|
||||||
uint16_t temperatures[N_SENSORS];
|
uint16_t temperatures[N_SENSORS];
|
||||||
|
memset(temperatures, 0, sizeof(temperatures));
|
||||||
while (1) {
|
while (1) {
|
||||||
/* USER CODE END WHILE */
|
/* USER CODE END WHILE */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue