From 732e59b412a29c52f5d6ad492743b86fa4cb20e6 Mon Sep 17 00:00:00 2001 From: Malderin <52313714+Malderin@users.noreply.github.com> Date: Wed, 29 Sep 2021 04:20:03 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20E3V2=20Mesh=20Viewer=20followup?= =?UTF-8?q?=20(#22850)?= 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 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp b/Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp index 6e9c88b60b68..4d657f2394af 100644 --- a/Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp +++ b/Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp @@ -124,18 +124,22 @@ 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_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);