Browse Source

🐛 Fix MKS LVGL UI retraction (#23267)

Sola 2 years ago
parent
commit
135683010a
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/lcd/extui/mks_ui/draw_extrusion.cpp

+ 3
- 3
Marlin/src/lcd/extui/mks_ui/draw_extrusion.cpp View File

55
   if (event != LV_EVENT_RELEASED) return;
55
   if (event != LV_EVENT_RELEASED) return;
56
   switch (obj->mks_obj_id) {
56
   switch (obj->mks_obj_id) {
57
     case ID_E_ADD:
57
     case ID_E_ADD:
58
-      if (thermalManager.degHotend(uiCfg.extruderIndex) >= EXTRUDE_MINTEMP) {
58
+      if (thermalManager.hotEnoughToExtrude(uiCfg.extruderIndex)) {
59
         sprintf_P((char *)public_buf_l, PSTR("G91\nG1 E%d F%d\nG90"), uiCfg.extruStep, 60 * uiCfg.extruSpeed);
59
         sprintf_P((char *)public_buf_l, PSTR("G91\nG1 E%d F%d\nG90"), uiCfg.extruStep, 60 * uiCfg.extruSpeed);
60
         queue.inject(public_buf_l);
60
         queue.inject(public_buf_l);
61
         extrudeAmount += uiCfg.extruStep;
61
         extrudeAmount += uiCfg.extruStep;
63
       }
63
       }
64
       break;
64
       break;
65
     case ID_E_DEC:
65
     case ID_E_DEC:
66
-      if (thermalManager.degHotend(uiCfg.extruderIndex) >= EXTRUDE_MINTEMP) {
66
+      if (thermalManager.hotEnoughToExtrude(uiCfg.extruderIndex)) {
67
         sprintf_P((char *)public_buf_l, PSTR("G91\nG1 E%d F%d\nG90"), 0 - uiCfg.extruStep, 60 * uiCfg.extruSpeed);
67
         sprintf_P((char *)public_buf_l, PSTR("G91\nG1 E%d F%d\nG90"), 0 - uiCfg.extruStep, 60 * uiCfg.extruSpeed);
68
-        queue.enqueue_one_now(public_buf_l);
68
+        queue.inject(public_buf_l);
69
         extrudeAmount -= uiCfg.extruStep;
69
         extrudeAmount -= uiCfg.extruStep;
70
         disp_extru_amount();
70
         disp_extru_amount();
71
       }
71
       }

Loading…
Cancel
Save