1611 srv_send((char *)"PROF_PEAK_ABS,%.3f", unit->prof_peak_abs); |
1611 srv_send((char *)"PROF_PEAK_ABS,%.3f", unit->prof_peak_abs); |
1612 srv_send((char *)"PROF_PEAK_REL,%.3f", unit->prof_peak_rel); |
1612 srv_send((char *)"PROF_PEAK_REL,%.3f", unit->prof_peak_rel); |
1613 srv_send((char *)"PROF_PRIMARY_DONE,%d", (int)unit->prof_primary_done); |
1613 srv_send((char *)"PROF_PRIMARY_DONE,%d", (int)unit->prof_primary_done); |
1614 srv_send((char *)"TEMP_SET_MIN,%.1f", unit->temp_set_min); |
1614 srv_send((char *)"TEMP_SET_MIN,%.1f", unit->temp_set_min); |
1615 srv_send((char *)"TEMP_SET_MAX,%.1f", unit->temp_set_max); |
1615 srv_send((char *)"TEMP_SET_MAX,%.1f", unit->temp_set_max); |
1616 srv_send((char *)"IDLE_RANGE_L,%.1f", unit->idle_rangeL); |
1616 srv_send((char *)"IDLE_RANGE_L,%.2f", unit->idle_rangeL); |
1617 srv_send((char *)"IDLE_RANGE_H,%.1f", unit->idle_rangeH); |
1617 srv_send((char *)"IDLE_RANGE_H,%.2f", unit->idle_rangeH); |
1618 srv_send((char *)"PID_KP,%.2f", unit->PID_Kp); |
1618 srv_send((char *)"PID_KP,%.2f", unit->PID_Kp); |
1619 srv_send((char *)"PID_KI,%.2f", unit->PID_Ki); |
1619 srv_send((char *)"PID_KI,%.2f", unit->PID_Ki); |
1620 srv_send((char *)"PID_KD,%.2f", unit->PID_Kd); |
1620 srv_send((char *)"PID_KD,%.2f", unit->PID_Kd); |
1621 srv_send((char *)"."); |
1621 srv_send((char *)"."); |
1622 return 1; |
1622 return 1; |
1982 } |
1982 } |
1983 |
1983 |
1984 } else if (val && (strcmp(kwd, (char *)"IDLE_RANGE_L") == 0)) { |
1984 } else if (val && (strcmp(kwd, (char *)"IDLE_RANGE_L") == 0)) { |
1985 if (sscanf(val, "%f", &fval) == 1) { |
1985 if (sscanf(val, "%f", &fval) == 1) { |
1986 if (unit->idle_rangeL != fval) |
1986 if (unit->idle_rangeL != fval) |
1987 syslog(LOG_NOTICE, "Fermenter unit %s idle range low %.1f to %.1f", unit->uuid, unit->idle_rangeL, fval); |
1987 syslog(LOG_NOTICE, "Fermenter unit %s idle range low %.2f to %.2f", unit->uuid, unit->idle_rangeL, fval); |
1988 unit->idle_rangeL = fval; |
1988 unit->idle_rangeL = fval; |
1989 } |
1989 } |
1990 |
1990 |
1991 } else if (val && (strcmp(kwd, (char *)"IDLE_RANGE_H") == 0)) { |
1991 } else if (val && (strcmp(kwd, (char *)"IDLE_RANGE_H") == 0)) { |
1992 if (sscanf(val, "%f", &fval) == 1) { |
1992 if (sscanf(val, "%f", &fval) == 1) { |
1993 if (unit->idle_rangeH != fval) |
1993 if (unit->idle_rangeH != fval) |
1994 syslog(LOG_NOTICE, "Fermenter unit %s idle range high %.1f to %.1f", unit->uuid, unit->idle_rangeH, fval); |
1994 syslog(LOG_NOTICE, "Fermenter unit %s idle range high %.2f to %.2f", unit->uuid, unit->idle_rangeH, fval); |
1995 unit->idle_rangeH = fval; |
1995 unit->idle_rangeH = fval; |
1996 } |
1996 } |
1997 |
1997 |
1998 } |
1998 } |
1999 } |
1999 } |