thermferm/devices.c

changeset 181
4099412fca09
parent 179
417ee898fb02
child 185
4f34271cf1e7
equal deleted inserted replaced
180:b62644eb442f 181:4099412fca09
39 char buf[40]; 39 char buf[40];
40 int i, rc; 40 int i, rc;
41 41
42 if (uuid == NULL) 42 if (uuid == NULL)
43 return 0; 43 return 0;
44
45 if (debug)
46 fprintf(stdout, "device_out(%s, %d)\n", uuid, value);
44 47
45 for (device = Config.devices; device; device = device->next) { 48 for (device = Config.devices; device; device = device->next) {
46 if (strcmp(uuid, device->uuid) == 0) { 49 if (strcmp(uuid, device->uuid) == 0) {
47 if (value != device->value) { 50 if (value != device->value) {
48 51

mercurial