2290 |
2290 |
2291 } else if (val && (strcmp(kwd, (char *)"CHILLER_IDX") == 0)) { |
2291 } else if (val && (strcmp(kwd, (char *)"CHILLER_IDX") == 0)) { |
2292 if (sscanf(val, "%d", &ival) == 1) { |
2292 if (sscanf(val, "%d", &ival) == 1) { |
2293 if (unit->chiller_idx != ival) |
2293 if (unit->chiller_idx != ival) |
2294 syslog(LOG_NOTICE, "Fermenter unit %s chiller idx %d to %d", unit->uuid, unit->chiller_idx, ival); |
2294 syslog(LOG_NOTICE, "Fermenter unit %s chiller idx %d to %d", unit->uuid, unit->chiller_idx, ival); |
2295 unit->beer_idx = ival; |
2295 unit->chiller_idx = ival; |
2296 } |
2296 } |
2297 |
2297 |
2298 } else if (strcmp(kwd, (char *)"HEATER_ADDRESS") == 0) { |
2298 } else if (strcmp(kwd, (char *)"HEATER_ADDRESS") == 0) { |
2299 if (val && unit->heater_address && (strcmp(val, unit->heater_address))) |
2299 if (val && unit->heater_address && (strcmp(val, unit->heater_address))) |
2300 syslog(LOG_NOTICE, "Fermenter unit %s heater address `%s' to `%s'", unit->uuid, unit->heater_address, val); |
2300 syslog(LOG_NOTICE, "Fermenter unit %s heater address `%s' to `%s'", unit->uuid, unit->heater_address, val); |