ENH: compatible with old BBL filament rfid info
Change-Id: I4f2d29c3a20d2b24d6fd637b969d4de3577c44e0 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
57154cda4b
commit
7e56fdabe6
|
@ -175,6 +175,14 @@ std::string AmsTray::get_filament_type()
|
|||
return "PLA-S";
|
||||
} else if (type == "Support G") {
|
||||
return "PA-S";
|
||||
} else if (type == "Support") {
|
||||
if (setting_id == "GFS00") {
|
||||
type = "PLA-S";
|
||||
} else if (setting_id == "GFS01") {
|
||||
type = "PA-S";
|
||||
} else {
|
||||
return "PLA-S";
|
||||
}
|
||||
} else {
|
||||
return type;
|
||||
}
|
||||
|
@ -2251,7 +2259,14 @@ int MachineObject::parse_json(std::string payload)
|
|||
if (tray_it->contains("tray_info_idx") && tray_it->contains("tray_type")) {
|
||||
curr_tray->setting_id = (*tray_it)["tray_info_idx"].get<std::string>();
|
||||
std::string type = (*tray_it)["tray_type"].get<std::string>();
|
||||
curr_tray->type = type;
|
||||
if (curr_tray->setting_id == "GFS00") {
|
||||
curr_tray->type = "PLA-S";
|
||||
}
|
||||
else if (curr_tray->setting_id == "GFS01") {
|
||||
curr_tray->type = "PA-S";
|
||||
} else {
|
||||
curr_tray->type = type;
|
||||
}
|
||||
} else {
|
||||
curr_tray->setting_id = "";
|
||||
curr_tray->type = "";
|
||||
|
|
|
@ -98,7 +98,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
|||
line_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
m_cb_spaghetti_print_halt = new CheckBox(parent);
|
||||
text_spaghetti_print_halt = new wxStaticText(parent, wxID_ANY, _L("Stop printing when spaghetti detected"));
|
||||
text_spaghetti_print_halt->SetFont(Label::Body_12);
|
||||
text_spaghetti_print_halt->SetFont(Label::Body_14);
|
||||
line_sizer->Add(FromDIP(30), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_spaghetti_print_halt, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_spaghetti_print_halt, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
|
|
Loading…
Reference in New Issue