Fix storing beer_idx value

Thu, 06 Jul 2017 22:31:01 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 06 Jul 2017 22:31:01 +0200
changeset 520
32bf084df5af
parent 519
6bf06b1b6232
child 521
28d1f5188c1d

Fix storing beer_idx value

thermferm/server.c file | annotate | diff | comparison | revisions
--- a/thermferm/server.c	Mon Jun 26 19:27:21 2017 +0200
+++ b/thermferm/server.c	Thu Jul 06 22:31:01 2017 +0200
@@ -2292,7 +2292,7 @@
 				if (sscanf(val, "%d", &ival) == 1) {
 				    if (unit->chiller_idx != ival)
 					syslog(LOG_NOTICE, "Fermenter unit %s chiller idx %d to %d", unit->uuid, unit->chiller_idx, ival);
-				    unit->beer_idx = ival;
+				    unit->chiller_idx = ival;
 				}
 
 			    } else if (strcmp(kwd, (char *)"HEATER_ADDRESS") == 0) {

mercurial