thermferm/server.c

changeset 520
32bf084df5af
parent 518
fd36bedab944
child 529
00b45f2aaac3
equal deleted inserted replaced
519:6bf06b1b6232 520:32bf084df5af
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);

mercurial