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); |