FIX: the tray id of virtual slot is not correct

jira: none
Change-Id: Idb15d31b866b33346d7b7ae26dd4e78ef3b3137b
This commit is contained in:
zhimin.zeng 2024-11-14 12:10:20 +08:00 committed by lane.wei
parent 9afe123026
commit 5a632cd2dd

View File

@ -519,7 +519,14 @@ void AMSMaterialsSetting::on_select_reset(wxCommandEvent& event) {
}
else {
PACalibIndexInfo select_index_info;
select_index_info.tray_id = ams_id * 4 + slot_id;
int tray_id = ams_id * 4 + slot_id;
if (is_virtual_tray()) {
tray_id = ams_id;
if (!obj->is_enable_np) {
tray_id = VIRTUAL_TRAY_DEPUTY_ID;
}
}
select_index_info.tray_id = tray_id;
select_index_info.ams_id = ams_id;
select_index_info.slot_id = slot_id;
select_index_info.nozzle_diameter = obj->m_extder_data.extders[0].current_nozzle_diameter;