diff -r e50a5003c7ac -r d77891f8915d thermferm/server.c --- a/thermferm/server.c Tue Apr 23 20:45:29 2024 +0200 +++ b/thermferm/server.c Wed Apr 24 11:04:00 2024 +0200 @@ -1532,7 +1532,7 @@ unit->door_idx = unit->light_idx = unit->psu_idx = unit->profile_fridge_mode = \ unit->profile_duration = unit->profile_totalsteps = 0; unit->profile_steps = NULL; - unit->volume = unit->prof_peak_abs = unit->prof_peak_rel = 0.0; + unit->prof_peak_abs = unit->prof_peak_rel = 0.0; unit->air_state = unit->beer_state = unit->chiller_state = DEVPRESENT_NO; unit->air_temperature = unit->beer_temperature = unit->chiller_temperature = 20000; unit->beer_set_lo = unit->beer_set_hi = unit->fridge_set_lo = unit->fridge_set_hi = unit->profile_inittemp_lo = unit->profile_inittemp_hi =20.0; @@ -1614,7 +1614,6 @@ srv_send(s, (char *)"PRODUCT_CODE,%s", unit->product_code); srv_send(s, (char *)"MODE,%s", UNITMODE[unit->mode]); srv_send(s, (char *)"STAGE,%s", UNITSTAGE[unit->stage]); - srv_send(s, (char *)"VOLUME,%2f", unit->volume); srv_send(s, (char *)"AIR_ADDRESS,%s", unit->air_address); srv_send(s, (char *)"AIR_STATE,%s", DEVPRESENT[unit->air_state]); srv_send(s, (char *)"AIR_TEMPERATURE,%.3f", unit->air_temperature / 1000.0); @@ -1761,13 +1760,6 @@ unit->product_name = xstrcpy(val); unit->mqtt_flag |= MQTT_FLAG_DATA; - } else if (val && (strcmp(kwd, (char *)"VOLUME") == 0)) { - if (sscanf(val, "%f", &fval) == 1) { - if (unit->volume != fval) - syslog(LOG_NOTICE, "Fermenter unit %s volume %.3f to %.3f", unit->uuid, unit->volume, fval); - unit->volume = fval; - } - } else if (strcmp(kwd, (char *)"AIR_ADDRESS") == 0) { if (val && unit->air_address && (strcmp(val, unit->air_address))) syslog(LOG_NOTICE, "Fermenter unit %s air address `%s' to `%s'", unit->uuid, unit->air_address, val);