Skip to content

Commit a843922

Browse files
vovodroidvovodroid
authored andcommitted
Limit speed and flow menu ranges.
1 parent 3d3be15 commit a843922

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Marlin/src/lcd/tft/touch.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,17 @@ void Touch::touch(touch_control_t *control) {
220220
break;
221221
case FEEDRATE:
222222
ui.clear_lcd();
223-
MenuItem_int3::action(GET_TEXT_F(MSG_SPEED), &feedrate_percentage, 10, 999);
223+
MenuItem_int3::action(GET_TEXT_F(MSG_SPEED), &feedrate_percentage, 30, 300);
224224
break;
225225

226226
#if HAS_EXTRUDERS
227227
case FLOWRATE:
228228
ui.clear_lcd();
229229
MenuItemBase::itemIndex = control->data;
230230
#if EXTRUDERS == 1
231-
MenuItem_int3::action(GET_TEXT_F(MSG_FLOW), &planner.flow_percentage[MenuItemBase::itemIndex], 10, 999, []{ planner.refresh_e_factor(MenuItemBase::itemIndex); });
231+
MenuItem_int3::action(GET_TEXT_F(MSG_FLOW), &planner.flow_percentage[MenuItemBase::itemIndex], 50, 150, []{ planner.refresh_e_factor(MenuItemBase::itemIndex); });
232232
#else
233-
MenuItem_int3::action(GET_TEXT_F(MSG_FLOW_N), &planner.flow_percentage[MenuItemBase::itemIndex], 10, 999, []{ planner.refresh_e_factor(MenuItemBase::itemIndex); });
233+
MenuItem_int3::action(GET_TEXT_F(MSG_FLOW_N), &planner.flow_percentage[MenuItemBase::itemIndex], 50, 150, []{ planner.refresh_e_factor(MenuItemBase::itemIndex); });
234234
#endif
235235
break;
236236
#endif

0 commit comments

Comments
 (0)