FIX: support set temp to 65 for some devices

jira: [STUDIO-9412]
Change-Id: Ia19a05477d4b52b65afdbbab7b6f841caa15089c
(cherry picked from commit 067966e7046b642ff98512d16d49329c1f277a58)
This commit is contained in:
xin.zhang
2024-12-30 15:57:00 +08:00
committed by Noisyfox
parent 95b335937c
commit 6e877a2f7c

View File

@@ -36,6 +36,8 @@ static const wxFont SWITCH_FONT = Label::Body_10;
/* const values */
static const int bed_temp_range[2] = {20, 120};
static const int default_champer_temp_min = 20;
static const int default_champer_temp_max = 60;
/* colors */
static const wxColour STATUS_PANEL_BG = wxColour(238, 238, 238);
@@ -1479,8 +1481,8 @@ wxBoxSizer *StatusBasePanel::create_temp_control(wxWindow *parent)
m_tempCtrl_chamber = new TempInput(parent, frame_id, TEMP_BLANK_STR, TempInputType::TEMP_OF_NORMAL_TYPE, TEMP_BLANK_STR, wxString("monitor_frame_temp"),
wxString("monitor_frame_temp_active"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER);
m_tempCtrl_chamber->SetReadOnly(true);
m_tempCtrl_chamber->SetMinTemp(obj->chamber_temp_edit_min);
m_tempCtrl_chamber->SetMaxTemp(obj->chamber_temp_edit_max);
m_tempCtrl_chamber->SetMinTemp(default_champer_temp_min);
m_tempCtrl_chamber->SetMaxTemp(default_champer_temp_max);
m_tempCtrl_chamber->SetMinSize(TEMP_CTRL_MIN_SIZE_OF_SINGLE_NOZZLE);
m_tempCtrl_chamber->SetBorderWidth(FromDIP(2));
m_tempCtrl_chamber->SetTextColor(tempinput_text_colour);