Skip to content

Commit

Permalink
🐛 Fix MKS LVGL UI retraction (MarlinFirmware#23267)
Browse files Browse the repository at this point in the history
  • Loading branch information
solawc authored Dec 8, 2021
1 parent dfa1c26 commit 1356830
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Marlin/src/lcd/extui/mks_ui/draw_extrusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ static void event_handler(lv_obj_t *obj, lv_event_t event) {
if (event != LV_EVENT_RELEASED) return;
switch (obj->mks_obj_id) {
case ID_E_ADD:
if (thermalManager.degHotend(uiCfg.extruderIndex) >= EXTRUDE_MINTEMP) {
if (thermalManager.hotEnoughToExtrude(uiCfg.extruderIndex)) {
sprintf_P((char *)public_buf_l, PSTR("G91\nG1 E%d F%d\nG90"), uiCfg.extruStep, 60 * uiCfg.extruSpeed);
queue.inject(public_buf_l);
extrudeAmount += uiCfg.extruStep;
disp_extru_amount();
}
break;
case ID_E_DEC:
if (thermalManager.degHotend(uiCfg.extruderIndex) >= EXTRUDE_MINTEMP) {
if (thermalManager.hotEnoughToExtrude(uiCfg.extruderIndex)) {
sprintf_P((char *)public_buf_l, PSTR("G91\nG1 E%d F%d\nG90"), 0 - uiCfg.extruStep, 60 * uiCfg.extruSpeed);
queue.enqueue_one_now(public_buf_l);
queue.inject(public_buf_l);
extrudeAmount -= uiCfg.extruStep;
disp_extru_amount();
}
Expand Down

0 comments on commit 1356830

Please sign in to comment.