FIX: add filament id to filament_ids when send cali job

jira: none
Change-Id: I6e3e8c38b67fe62442fa369f072fd1743f35f38f
(cherry picked from commit ec9193ffb06e12411b4e521c12d9e16f121f54d1)
This commit is contained in:
zhimin.zeng
2025-03-27 20:53:46 +08:00
committed by Noisyfox
parent ed5111add8
commit 5dd1bc9a81
2 changed files with 8 additions and 0 deletions

View File

@@ -760,6 +760,8 @@ void PressureAdvanceWizard::on_cali_start()
Preset *preset = selected_filaments.begin()->second;
Preset * temp_filament_preset = new Preset(preset->type, preset->name + "_temp");
temp_filament_preset->config = preset->config;
if (preset->type == Preset::TYPE_FILAMENT)
temp_filament_preset->filament_id = preset->filament_id;
calib_info.bed_type = plate_type;
calib_info.process_bar = preset_page->get_sending_progress_bar();
@@ -1233,6 +1235,8 @@ void FlowRateWizard::on_cali_start(CaliPresetStage stage, float cali_value, Flow
Preset* preset = selected_filaments.begin()->second;
temp_filament_preset = new Preset(preset->type, preset->name + "_temp");
temp_filament_preset->config = preset->config;
if (preset->type == Preset::TYPE_FILAMENT)
temp_filament_preset->filament_id = preset->filament_id;
calib_info.bed_type = plate_type;
calib_info.printer_prest = preset_page->get_printer_preset(curr_obj, preset_page->get_nozzle_diameter(calib_info.extruder_id));