thermferm/thermferm.h

changeset 564
3fc61dd28656
parent 557
ae17042a6d39
child 569
9c69d43bfb06
--- a/thermferm/thermferm.h	Fri Aug 03 21:58:30 2018 +0200
+++ b/thermferm/thermferm.h	Sat Aug 04 16:29:12 2018 +0200
@@ -199,6 +199,7 @@
     char		*event_msg;		/* Event message to log		*/
     int			alarm_flag;		/* Alarm flag			*/
     int			alarm_last;		/* Last alarm state		*/
+    int			stage;			/* Fermentation stage		*/
 } units_list;
 
 #define	UNITMODE_OFF		0		/* Unit turned off		*/
@@ -207,6 +208,10 @@
 #define	UNITMODE_BEER		3		/* Unit acts as beer cooler	*/
 #define	UNITMODE_PROFILE	4		/* Unit runs in profile mode	*/
 
+#define	UNITSTAGE_PRIMARY	0		/* Fermentation primary stage	*/
+#define	UNITSTAGE_SECONDARY	1		/* Fermentation secondary stage	*/
+#define	UNITSTAGE_TERTIARY	2		/* Fermentation tertiary stage	*/
+
 #define	MQTT_FLAG_DATA		0x0001		/* Show updated data values	*/
 #define	MQTT_FLAG_BIRTH		0x0002		/* Show birth instead of data	*/
 #define MQTT_FLAG_DEATH		0x0004		/* Show death of a unit		*/

mercurial