FIX: the ams control display the value of last time

when the filament is not recognized
Jira: 3831

Change-Id: I7f121e7ba8504a3a6de12227b3c7c032a452b62d
This commit is contained in:
zhimin.zeng 2023-08-28 18:16:03 +08:00 committed by Lane.Wei
parent 6ce7bc8c49
commit fbd70b13a3
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ bool AMSinfo::parse_ams_info(MachineObject *obj, Ams *ams, bool remain_flag, boo
wxColour(255, 255, 255);
}
if (obj->get_printer_series() == PrinterSeries::SERIES_X1) {
if (obj->get_printer_series() == PrinterSeries::SERIES_X1 && it->second->is_tray_info_ready()) {
CalibUtils::get_pa_k_n_value_by_cali_idx(obj, it->second->cali_idx, info.k, info.n);
}
else {