thermferm/thermferm.h

changeset 525
5855abe0e82c
parent 518
fd36bedab944
child 530
d33516eac22f
--- a/thermferm/thermferm.h	Mon Jul 24 22:55:28 2017 +0200
+++ b/thermferm/thermferm.h	Tue Jul 25 11:43:35 2017 +0200
@@ -195,6 +195,8 @@
     pid_var		*PID_cool;		/* PID cooler			*/
     pid_var		*PID_heat;		/* PID heater			*/
     int			mqtt_flag;		/* MQTT print values flag	*/
+    int			alarm_flag;		/* Alarm flag			*/
+    int			alarm_last;		/* Last alarm state		*/
 } units_list;
 
 #define	UNITMODE_OFF		0		/* Unit turned off		*/
@@ -207,6 +209,10 @@
 
 #define	MQTT_NODE_CONTROL	0x0001		/* Show node control		*/
 
+#define	ALARM_FLAG_DOOR		0x0001		/* Door open			*/
+#define	ALARM_FLAG_PSU		0x0002		/* PSU problem			*/
+#define	ALARM_FLAG_CHILLER	0x0004		/* Chiller too warm		*/
+
 
 
 /*

mercurial