249 #ifdef USE_SIMULATOR |
249 #ifdef USE_SIMULATOR |
250 if ((device->type == DEVTYPE_SIM) && (device->direction == DEVDIR_OUT_BIN) && (device->present == DEVPRESENT_YES)) { |
250 if ((device->type == DEVTYPE_SIM) && (device->direction == DEVDIR_OUT_BIN) && (device->present == DEVPRESENT_YES)) { |
251 if ((strcmp((char *)"SimHLTheater", device->address) == 0) || |
251 if ((strcmp((char *)"SimHLTheater", device->address) == 0) || |
252 (strcmp((char *)"SimMLTheater", device->address) == 0) || |
252 (strcmp((char *)"SimMLTheater", device->address) == 0) || |
253 (strcmp((char *)"SimMLTpump", device->address) == 0)) { |
253 (strcmp((char *)"SimMLTpump", device->address) == 0)) { |
254 if (value != device->value) { |
|
255 syslog(LOG_NOTICE, "SIM %s value=%d", device->address, value); |
|
256 if (debug) |
|
257 fprintf(stdout, "SIM %s value=%d\n", device->address, value); |
|
258 } |
|
259 device->value = value; |
254 device->value = value; |
260 if (strcmp((char *)"SimHLTheater", device->address) == 0) { |
255 if (strcmp((char *)"SimHLTheater", device->address) == 0) { |
261 SIM_hlt_value = value; |
256 SIM_hlt_value = value; |
262 hlt_heater(value); |
257 hlt_heater(value); |
263 } |
258 } |