From 2a31f51494e624b066f2f263f7827fed6463d2f4 Mon Sep 17 00:00:00 2001 From: Jan Mrna Date: Fri, 10 Jun 2022 08:52:28 +0200 Subject: [PATCH] Changed voc_index to uint32_t to fix Sensirion lib crash --- fw/Core/Src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fw/Core/Src/main.c b/fw/Core/Src/main.c index 387c409..65c85c2 100644 --- a/fw/Core/Src/main.c +++ b/fw/Core/Src/main.c @@ -126,7 +126,7 @@ sps30_data_t PM_SPS30; /* VOC related varibles */ uint16_t voc_ticks_compensated; uint16_t voc_ticks; -uint16_t voc_index; +uint32_t voc_index; /* Struct to store the sensor config */ config_t sensor_config;