brewco/brewco.c

changeset 474
fe1c3e3e90dc
parent 473
fdd30e935079
child 475
bec993331061
--- a/brewco/brewco.c	Sat Dec 26 21:45:44 2015 +0100
+++ b/brewco/brewco.c	Sat Dec 26 23:35:42 2015 +0100
@@ -54,6 +54,7 @@
 extern int              lcdHandle;
 extern int		slcdHandle;
 extern int		sock;
+
 #ifdef USE_SIMULATOR
 extern int		SIM_cooler;
 #endif
@@ -312,7 +313,12 @@
 {
     int		key, save = dosave, i;
     char	data[128];
-    static int	mash_fase = MASH_NA, hopstand = 0, last_step = -1, last_fase = -1, oldsec = 75, startdelay = 0;
+    static int	mash_fase = MASH_NA, hopstand = 0, last_step = STEP_NA, last_fase = -1, oldsec = 75, startdelay = 0;
+
+    if (brew->brewstep != last_step) {
+	snprintf(data, 40, brewstep_name(last_step));
+	syslog(LOG_NOTICE, "AUTO: brewstep %s to %s", data, brewstep_name(brew->brewstep));
+    }
 
     switch (brew->brewstep) {
 	case STEP_NA:		if (debug)
@@ -533,6 +539,7 @@
 
 				    case MASH_REST:	if (last_fase != mash_fase) {
 							    prompt(111 + brew->mashstep, NULL);     /* "AUTO --> [mashname] " */
+							    prompt(200, NULL);
 							    prompt(300, NULL);
 							    prompt(418, NULL);                      /* "---  ---  Pause --- " */
 							    hlt_status(1);

mercurial