瀏覽代碼

🐛 Fix MKS LVGL UI retraction (#23267)

Sola 2 年之前
父節點
當前提交
135683010a
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      Marlin/src/lcd/extui/mks_ui/draw_extrusion.cpp

+ 3
- 3
Marlin/src/lcd/extui/mks_ui/draw_extrusion.cpp 查看文件

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

Loading…
取消
儲存