Decouple chamber temperature

- make chamber_temperature variable always accessible
This commit is contained in:
Kiss Lorand
2026-05-02 14:11:34 +03:00
committed by GitHub
parent e66ec7fd70
commit 0c415708d7

View File

@@ -4267,14 +4267,7 @@ void TabFilament::toggle_options()
toggle_line("pellet_flow_coefficient", is_pellet_printer); toggle_line("pellet_flow_coefficient", is_pellet_printer);
toggle_line("filament_diameter", !is_pellet_printer); toggle_line("filament_diameter", !is_pellet_printer);
bool support_chamber_temp_control = printer_cfg.opt_bool("support_chamber_temp_control"); toggle_line("activate_chamber_temp_control", printer_cfg.opt_bool("support_chamber_temp_control"));
toggle_line("activate_chamber_temp_control", support_chamber_temp_control);
toggle_line("chamber_temperature", support_chamber_temp_control);
if (support_chamber_temp_control) {
bool activate_chamber_temp_control = m_config->opt_bool("activate_chamber_temp_control", 0);
toggle_option("chamber_temperature", activate_chamber_temp_control);
}
std::string volumetric_speed_cos = m_config->opt_string("volumetric_speed_coefficients", 0u); std::string volumetric_speed_cos = m_config->opt_string("volumetric_speed_coefficients", 0u);
bool enable_fit = volumetric_speed_cos != "0 0 0 0 0 0"; bool enable_fit = volumetric_speed_cos != "0 0 0 0 0 0";