1697 unit->volume = unit->prof_peak_abs = unit->prof_peak_rel = 0.0; |
1697 unit->volume = unit->prof_peak_abs = unit->prof_peak_rel = 0.0; |
1698 unit->air_state = unit->beer_state = unit->chiller_state = 1; |
1698 unit->air_state = unit->beer_state = unit->chiller_state = 1; |
1699 unit->air_temperature = unit->beer_temperature = unit->chiller_temperature = 20000; |
1699 unit->air_temperature = unit->beer_temperature = unit->chiller_temperature = 20000; |
1700 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; |
1700 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; |
1701 unit->heater_state = unit->cooler_state = unit->fan_state = unit->door_state = unit->mode = \ |
1701 unit->heater_state = unit->cooler_state = unit->fan_state = unit->door_state = unit->mode = \ |
1702 unit->light_state = unit->psu_state = unit->prof_state = unit->stage = 0; |
1702 unit->light_state = unit->light_timer = unit->psu_state = unit->prof_state = unit->stage = 0; |
1703 unit->heater_delay = unit->cooler_delay = unit->fan_delay = 20; /* 5 minutes delay */ |
1703 unit->heater_delay = unit->cooler_delay = unit->fan_delay = 20; /* 5 minutes delay */ |
1704 unit->light_delay = 1; /* 15 seconds delay */ |
1704 unit->light_delay = 1; /* 15 seconds delay */ |
1705 unit->heater_wait = unit->cooler_wait = unit->fan_wait = unit->light_wait = 0; |
1705 unit->heater_wait = unit->cooler_wait = unit->fan_wait = unit->light_wait = 0; |
1706 unit->heater_usage = unit->cooler_usage = unit->fan_usage = unit->light_usage = 0; |
1706 unit->heater_usage = unit->cooler_usage = unit->fan_usage = unit->light_usage = 0; |
1707 unit->temp_set_min = 1.0; |
1707 unit->temp_set_min = 1.0; |
2203 syslog(LOG_NOTICE, "Fermenter unit %s mode %s to %s", unit->uuid, UNITMODE[unit->mode], UNITMODE[i]); |
2203 syslog(LOG_NOTICE, "Fermenter unit %s mode %s to %s", unit->uuid, UNITMODE[unit->mode], UNITMODE[i]); |
2204 unit->mode = i; |
2204 unit->mode = i; |
2205 /* Allways turn everything off after a mode change */ |
2205 /* Allways turn everything off after a mode change */ |
2206 unit->PID_cool->OutP = unit->PID_heat->OutP = 0.0; |
2206 unit->PID_cool->OutP = unit->PID_heat->OutP = 0.0; |
2207 unit->PID_cool->Mode = unit->PID_heat->Mode = PID_MODE_NONE; |
2207 unit->PID_cool->Mode = unit->PID_heat->Mode = PID_MODE_NONE; |
2208 unit->heater_state = unit->cooler_state = unit->fan_state = unit->light_state = 0; |
2208 unit->heater_state = unit->cooler_state = unit->fan_state = unit->light_state = unit->light_timer = 0; |
2209 unit->heater_wait = unit->cooler_wait = unit->fan_wait = unit->light_wait = 0; |
2209 unit->heater_wait = unit->cooler_wait = unit->fan_wait = unit->light_wait = 0; |
2210 device_out(unit->heater_address, unit->heater_state); |
2210 device_out(unit->heater_address, unit->heater_state); |
2211 device_out(unit->cooler_address, unit->cooler_state); |
2211 device_out(unit->cooler_address, unit->cooler_state); |
2212 device_out(unit->fan_address, unit->fan_state); |
2212 device_out(unit->fan_address, unit->fan_state); |
2213 device_out(unit->light_address, unit->light_state); |
2213 device_out(unit->light_address, unit->light_state); |