Browse Source

🚸 Fix MKS LVGL UI temperature set interface (#22848)

Sola 3 years ago
parent
commit
5dce8d0a84
No account linked to committer's email address

+ 5
- 9
Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp View File

124
         else if (uiCfg.extruderIndex == 0) {
124
         else if (uiCfg.extruderIndex == 0) {
125
           uiCfg.curTempType = TERN(HAS_HEATED_BED, 1, 0);
125
           uiCfg.curTempType = TERN(HAS_HEATED_BED, 1, 0);
126
         }
126
         }
127
+        lv_obj_del(btn_pla);
128
+        lv_obj_del(btn_abs);
127
       }
129
       }
128
       else if (uiCfg.curTempType == 1) {
130
       else if (uiCfg.curTempType == 1) {
129
         uiCfg.extruderIndex = 0;
131
         uiCfg.extruderIndex = 0;
130
         uiCfg.curTempType = 0;
132
         uiCfg.curTempType = 0;
133
+        lv_obj_del(buttonAdd);
134
+        lv_obj_del(buttonDec);
131
         disp_add_dec();
135
         disp_add_dec();
132
         disp_ext_heart();
136
         disp_ext_heart();
133
       }
137
       }
138
+
134
       disp_temp_type();
139
       disp_temp_type();
135
       break;
140
       break;
136
-    case ID_P_STEP:
137
-      switch (uiCfg.stepHeat) {
138
-        case  1: uiCfg.stepHeat =  5; break;
139
-        case  5: uiCfg.stepHeat = 10; break;
140
-        case 10: uiCfg.stepHeat =  1; break;
141
-        default: break;
142
-      }
143
-      disp_step_heat();
144
-      break;
145
     case ID_P_OFF:
141
     case ID_P_OFF:
146
       if (uiCfg.curTempType == 0) {
142
       if (uiCfg.curTempType == 0) {
147
         thermalManager.setTargetHotend(0, uiCfg.extruderIndex);
143
         thermalManager.setTargetHotend(0, uiCfg.extruderIndex);

+ 1
- 0
Marlin/src/lcd/extui/mks_ui/draw_ready_print.cpp View File

98
   lv_obj_set_style(det_info, &det_style);
98
   lv_obj_set_style(det_info, &det_style);
99
   lv_label_set_text(det_info, "det:ok");
99
   lv_label_set_text(det_info, "det:ok");
100
 }
100
 }
101
+
101
 void disp_det_error() {
102
 void disp_det_error() {
102
   det_style.text.color.full = 0xF800;
103
   det_style.text.color.full = 0xF800;
103
   lv_obj_set_style(det_info, &det_style);
104
   lv_obj_set_style(det_info, &det_style);

Loading…
Cancel
Save