|
@@ -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
|
}
|