# HG changeset patch # User Michiel Broek # Date 1427384453 -3600 # Node ID ba3a2d27d59e98668333d1db05c505d23c7d7f25 # Parent 3bbc8f42adc0588937a7f132a4f7b7df899beaea Initialize offset to zero with new detected 1-wire devices. diff -r 3bbc8f42adc0 -r ba3a2d27d59e thermferm/devices.c --- 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;