thermferm/thermferm.h

changeset 397
00ca08f5a6f8
parent 362
c92651a54969
child 418
0bfe08c7ba6e
--- a/thermferm/thermferm.h	Tue Sep 15 17:29:15 2015 +0200
+++ b/thermferm/thermferm.h	Wed Sep 16 22:05:05 2015 +0200
@@ -164,12 +164,14 @@
     char		*profile;		/* Active profile uuid		*/
     time_t		prof_started;		/* Profile start time		*/
     int			prof_state;		/* Profile OFF|PAUSE|RUN|DONE	*/
-    float		prof_target;		/* Profile current target temp	*/
+    float		prof_target_lo;		/* Profile current target low	*/
+    float		prof_target_hi;		/* Profile current target high	*/
     time_t		prof_paused;		/* Profile total pause time	*/
     int			prof_percent;		/* Profile percentage done	*/
     float		prof_peak_abs;		/* Profile absolute peak temp	*/
     float		prof_peak_rel;		/* Profile relative peak temp	*/
     time_t		prof_primary_done;	/* Profile primary is done	*/
+    int			prof_fridge_mode;	/* Profile fridge/beer mode	*/
     pid_var		*PID_cool;		/* PID cooler			*/
     pid_var		*PID_heat;		/* PID heater			*/
 } units_list;
@@ -189,7 +191,9 @@
     int			version;		/* Version 1			*/
     int			steptime;		/* Step time to target in hours	*/
     int			resttime;		/* Rest time on target in hours	*/
-    float		target;			/* Target temperature		*/
+    float		target_lo;		/* Low Target temperature	*/
+    float		target_hi;		/* High target temperature	*/
+    int			fridge_mode;		/* Fridge or beer mode		*/
 } prof_step;
 
 /*
@@ -201,7 +205,9 @@
     char		*uuid;			/* Profile uuid			*/
     char		*name;			/* Profile name			*/
     int			busy;			/* Profile busy == 1, free == 0	*/
-    float		inittemp;		/* Temp target before start	*/
+    float		inittemp_lo;		/* Low target before start	*/
+    float		inittemp_hi;		/* High target before start	*/
+    int			fridge_mode;		/* Fridge or beer mode		*/
     prof_step		*steps;			/* Profile steps		*/
 } profiles_list;
 

mercurial