updated some values in TMP1075

This commit is contained in:
hamza 2024-07-06 23:31:04 +03:00
parent 16824744e7
commit 2dfb9c4cac
2 changed files with 4 additions and 2 deletions

@ -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 <stdint.h>
#define N_CELLS 13
#define N_TEMP_SENSORS 13
extern uint32_t tmp1075_failed_sensors;
extern int16_t tmp1075_temps[N_TEMP_SENSORS];

@ -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};