diff --git a/Core/Inc/TMP1075.h b/Core/Inc/TMP1075.h index 345b2fe..e2664c1 100644 --- a/Core/Inc/TMP1075.h +++ b/Core/Inc/TMP1075.h @@ -2,13 +2,15 @@ #define INC_TMP1075_H_ #include "can.h" -#include "common_defs.h" #include "stm32f3xx_hal.h" #include "TMP1075.h" #include "can-halal.h" #include "errors.h" #include +#define N_CELLS 13 +#define N_TEMP_SENSORS 13 + extern uint32_t tmp1075_failed_sensors; extern int16_t tmp1075_temps[N_TEMP_SENSORS]; diff --git a/Core/Src/TMP1075.c b/Core/Src/TMP1075.c index 9fd4aae..6e2ba76 100644 --- a/Core/Src/TMP1075.c +++ b/Core/Src/TMP1075.c @@ -1,7 +1,7 @@ #include "TMP1075.h" #define MAX_TEMP ((int16_t)(59 / 0.0625f)) -#define MAX_FAILED_TEMP 12 //TODO: change value for compliance with the actual number of sensors +#define MAX_FAILED_TEMP 2 //TODO: change value for compliance with the actual number of sensors #warning "change value for compliance with the actual number of sensors" int16_t tmp1075_temps[N_TEMP_SENSORS] = {0};