Thu, 26 Mar 2015 16:40:53 +0100
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;