|
@@ -143,6 +143,9 @@ void MenuItem_gcode::action(PGM_P const pgcode) { queue.inject_P(pgcode); }
|
143
|
143
|
* MenuItem_int3::action_edit(PSTR(MSG_SPEED), &feedrate_percentage, 10, 999)
|
144
|
144
|
*/
|
145
|
145
|
void MenuItemBase::edit(strfunc_t strfunc, loadfunc_t loadfunc) {
|
|
146
|
+ #if ENABLED(TOUCH_BUTTONS)
|
|
147
|
+ ui.repeat_delay = 50;
|
|
148
|
+ #endif
|
146
|
149
|
if (int16_t(ui.encoderPosition) < 0) ui.encoderPosition = 0;
|
147
|
150
|
if (int16_t(ui.encoderPosition) > maxEditValue) ui.encoderPosition = maxEditValue;
|
148
|
151
|
if (ui.should_draw())
|
|
@@ -212,6 +215,10 @@ bool printer_busy() {
|
212
|
215
|
void MarlinUI::goto_screen(screenFunc_t screen, const uint16_t encoder/*=0*/, const uint8_t top/*=0*/, const uint8_t items/*=0*/) {
|
213
|
216
|
if (currentScreen != screen) {
|
214
|
217
|
|
|
218
|
+ #if ENABLED(TOUCH_BUTTONS)
|
|
219
|
+ repeat_delay = 250;
|
|
220
|
+ #endif
|
|
221
|
+
|
215
|
222
|
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
|
216
|
223
|
// Shadow for editing the fade height
|
217
|
224
|
lcd_z_fade_height = planner.z_fade_height;
|