FIX:fixed invalid load when there is no filament in the extruder

Change-Id: If10026787367a596a1bad97a8ec06a645bed93f2
This commit is contained in:
tao wang 2023-04-10 21:44:59 +08:00 committed by Lane.Wei
parent 29459fe4cb
commit 9fc29ac138
2 changed files with 16 additions and 7 deletions

View file

@ -2621,7 +2621,7 @@ void StatusPanel::on_ams_load_curr()
con_load_dlg->Bind(EVT_SECONDARY_CHECK_CONFIRM, [this](wxCommandEvent& e) {*/
int old_temp = -1;
int new_temp = -1;
AmsTray* curr_tray = obj->get_curr_tray();
AmsTray* curr_tray = &obj->vt_tray;
if (!curr_tray) return;