LIST LOG sends lines per 30 minutes instead of 10 minutes.

Wed, 03 Sep 2014 15:29:46 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 03 Sep 2014 15:29:46 +0200
changeset 285
bbe73c2ecacf
parent 284
9e6fb5aed618
child 286
674efa17be1d

LIST LOG sends lines per 30 minutes instead of 10 minutes.

thermferm/server.c file | annotate | diff | comparison | revisions
--- a/thermferm/server.c	Wed Sep 03 15:02:09 2014 +0200
+++ b/thermferm/server.c	Wed Sep 03 15:29:46 2014 +0200
@@ -694,7 +694,8 @@
 			q[1] = buffer[12];
 			q[2] = buffer[13];
 			q[3] = buffer[14];
-		    	srv_send(copy);
+			if ((q[3] == '0') || (q[3] == '3'))
+		    	    srv_send(copy);
 		    } else if ((mode_o && strcmp(mode_o, mode_n)) ||
 			       (heater_o && strcmp(heater_o, heater_n)) || (cooler_o && strcmp(cooler_o, cooler_n))) {
 			srv_send(copy);

mercurial