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 |