Check number of broken temperature sensors

This commit is contained in:
jazzpi
2022-07-30 22:23:05 +02:00
parent 4316e604da
commit e0b9568e56
3 changed files with 17 additions and 0 deletions

View File

@ -13,5 +13,6 @@
#define SlavesTimeoutError 1
#define SlavesErrorFrameError 2
#define SLAVES_FRAME_TIMEOUT_ERROR 3
#define SLAVES_TOO_FEW_TEMPS 4
#endif /* INC_AMS_ERRORCODES_H_ */

View File

@ -20,6 +20,8 @@
#define SLAVETIMEOUT 500
#define SLAVE_HEARTBEAT_FRAMES 11
// 30% * 90 = 27, each sensor measures 2 cells
#define SLAVE_MIN_TEMP_SENSORS 14
typedef struct {