Initialize offset to zero with new detected 1-wire devices.

Thu, 26 Mar 2015 16:40:53 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 26 Mar 2015 16:40:53 +0100
changeset 343
ba3a2d27d59e
parent 342
3bbc8f42adc0
child 344
acd840c9fcc0

Initialize offset to zero with new detected 1-wire devices.

thermferm/devices.c file | annotate | diff | comparison | revisions
--- a/thermferm/devices.c	Mon Mar 23 20:34:47 2015 +0100
+++ b/thermferm/devices.c	Thu Mar 26 16:40:53 2015 +0100
@@ -316,7 +316,7 @@
 			    ndev->description = xstrcpy((char *)"Unknown device family ");
 			    ndev->description = xstrcat(ndev->description, buf);
 			}
-			ndev->value = ndev->inuse = 0;
+			ndev->value = ndev->offset = ndev->inuse = 0;
 			ndev->present = DEVPRESENT_YES;
 			ndev->address = xstrcpy(de->d_name);
 			ndev->subdevice = i;

mercurial