From 5dce8d0a84aa8ee3e2b63c880dd2eadc18a64f1b Mon Sep 17 00:00:00 2001 From: Sola <42537573+solawc@users.noreply.github.com> Date: Tue, 28 Sep 2021 03:08:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Fix=20MKS=20LVGL=20UI=20temperat?= =?UTF-8?q?ure=20set=20interface=20(#22848)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp | 14 +++++--------- Marlin/src/lcd/extui/mks_ui/draw_ready_print.cpp | 1 + 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp b/Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp index 1d804c3b2a..eb8799f1c4 100644 --- a/Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp +++ b/Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp @@ -124,24 +124,20 @@ static void event_handler(lv_obj_t *obj, lv_event_t event) { else if (uiCfg.extruderIndex == 0) { uiCfg.curTempType = TERN(HAS_HEATED_BED, 1, 0); } + lv_obj_del(btn_pla); + lv_obj_del(btn_abs); } else if (uiCfg.curTempType == 1) { uiCfg.extruderIndex = 0; uiCfg.curTempType = 0; + lv_obj_del(buttonAdd); + lv_obj_del(buttonDec); disp_add_dec(); disp_ext_heart(); } + disp_temp_type(); break; - case ID_P_STEP: - switch (uiCfg.stepHeat) { - case 1: uiCfg.stepHeat = 5; break; - case 5: uiCfg.stepHeat = 10; break; - case 10: uiCfg.stepHeat = 1; break; - default: break; - } - disp_step_heat(); - break; case ID_P_OFF: if (uiCfg.curTempType == 0) { thermalManager.setTargetHotend(0, uiCfg.extruderIndex); diff --git a/Marlin/src/lcd/extui/mks_ui/draw_ready_print.cpp b/Marlin/src/lcd/extui/mks_ui/draw_ready_print.cpp index a8d8b29ac0..1596944bd8 100644 --- a/Marlin/src/lcd/extui/mks_ui/draw_ready_print.cpp +++ b/Marlin/src/lcd/extui/mks_ui/draw_ready_print.cpp @@ -98,6 +98,7 @@ void disp_det_ok() { lv_obj_set_style(det_info, &det_style); lv_label_set_text(det_info, "det:ok"); } + void disp_det_error() { det_style.text.color.full = 0xF800; lv_obj_set_style(det_info, &det_style);