908 unit->heater_state = unit->cooler_state = unit->fan_state = unit->door_state = unit->mode = unit->prof_state = 0; |
908 unit->heater_state = unit->cooler_state = unit->fan_state = unit->door_state = unit->mode = unit->prof_state = 0; |
909 unit->temp_set_min = 1.0; |
909 unit->temp_set_min = 1.0; |
910 unit->temp_set_max = 30.0; |
910 unit->temp_set_max = 30.0; |
911 unit->idle_rangeH = 1.0; |
911 unit->idle_rangeH = 1.0; |
912 unit->idle_rangeL = -1.0; |
912 unit->idle_rangeL = -1.0; |
913 unit->prof_started = (time_t)0; |
913 unit->prof_started = unit->prof_paused = (time_t)0; |
914 unit->PID_err_old = unit->PID_I_err = 0.0; |
914 unit->PID_err_old = unit->PID_I_err = 0.0; |
915 |
915 |
916 if (Config.units == NULL) { |
916 if (Config.units == NULL) { |
917 Config.units = unit; |
917 Config.units = unit; |
918 } else { |
918 } else { |