thermferm/server.c

changeset 699
35382668a140
parent 698
92a080c1a5d5
child 702
d77891f8915d
equal deleted inserted replaced
698:92a080c1a5d5 699:35382668a140
418 device->present = DEVPRESENT_UNDEF; 418 device->present = DEVPRESENT_UNDEF;
419 device->address = xstrcpy((char *)"Enter address here"); 419 device->address = xstrcpy((char *)"Enter address here");
420 device->gpiopin = -1; 420 device->gpiopin = -1;
421 device->description = xstrcpy((char *)"Describe me here"); 421 device->description = xstrcpy((char *)"Describe me here");
422 device->comment = xstrcpy((char *)"Comment here"); 422 device->comment = xstrcpy((char *)"Comment here");
423 device->timestamp = time(NULL);
423 424
424 pthread_mutex_lock(&mutexes[LOCK_DEVICES]); 425 pthread_mutex_lock(&mutexes[LOCK_DEVICES]);
425 if (Config.devices == NULL) { 426 if (Config.devices == NULL) {
426 Config.devices = device; 427 Config.devices = device;
427 } else { 428 } else {

mercurial