Fixed auto device update timer

Wed, 01 Apr 2015 22:10:59 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 01 Apr 2015 22:10:59 +0200
changeset 351
d8c410c320db
parent 350
7283561977b1
child 352
a8e106c95db4

Fixed auto device update timer

thermferm/devices.c file | annotate | diff | comparison | revisions
--- a/thermferm/devices.c	Wed Apr 01 21:56:35 2015 +0200
+++ b/thermferm/devices.c	Wed Apr 01 22:10:59 2015 +0200
@@ -288,7 +288,7 @@
 		test_value = value;
 	    }
 
-	    if ((test_value != my_value) || (((int)now - (int)my_timestamp) > 120)) {
+	    if ((test_value != my_value) || (((int)now - (int)my_timestamp) >= 120)) {
 
 #ifdef HAVE_WIRINGPI_H
 		rc = 0;

mercurial