thermferm/one-wire.c

changeset 712
93a87fe230cc
parent 711
844588d0df65
child 715
f5d85af156ab
equal deleted inserted replaced
711:844588d0df65 712:93a87fe230cc
250 changed = true; 250 changed = true;
251 for (device = Config.devices; device; device = device->next) { 251 for (device = Config.devices; device; device = device->next) {
252 if (strcmp(dev_w1->address, device->address) == 0) { 252 if (strcmp(dev_w1->address, device->address) == 0) {
253 // pthread_mutex_lock(&mutexes[LOCK_DEVICES]); 253 // pthread_mutex_lock(&mutexes[LOCK_DEVICES]);
254 device->present = DEVPRESENT_NO; 254 device->present = DEVPRESENT_NO;
255 syslog(LOG_NOTICE, "One-wire device %s marked device %s not present", dev_w1->address, device->address);
255 // pthread_mutex_unlock(&mutexes[LOCK_DEVICES]); 256 // pthread_mutex_unlock(&mutexes[LOCK_DEVICES]);
256 } 257 }
257 } 258 }
258 } 259 }
259 free(devfile); 260 free(devfile);

mercurial