Skip to content

Commit

Permalink
🚸 Fix MKS LVGL UI temperature set interface (#22848)
Browse files Browse the repository at this point in the history
  • Loading branch information
solawc authored Sep 27, 2021
1 parent 228eb9c commit 5dce8d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions Marlin/src/lcd/extui/mks_ui/draw_ready_print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5dce8d0

Please sign in to comment.