thermferm/thermferm.c

changeset 209
c5b1dfd83e81
parent 207
8d2ba4126519
child 213
2317b8d644fa
--- a/thermferm/thermferm.c	Sun Aug 10 16:56:22 2014 +0200
+++ b/thermferm/thermferm.c	Sun Aug 10 17:25:50 2014 +0200
@@ -110,7 +110,7 @@
 
     for (device = Config.devices; device; device = device->next) {
 	if (strcmp(address, device->uuid) == 0) {
-	    tmp = device->value;
+	    tmp = device->value + device->offset;
 	    *val = tmp;
 	    return device->present;
 	}

mercurial