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

Change-Id: If10026787367a596a1bad97a8ec06a645bed93f2
This commit is contained in:
tao wang authored and Lane.Wei committed 2023-04-17 15:39:02 +08:00
1 parent 29459fe4cb
commit 9fc29ac138
2 files changed
+16 -7

No files matched your search

+1 -1
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;