Touch UI: Fix UBL mesh value editing (#16432)

2.0.x
Tanguy Pruvot 5 years ago committed by Scott Lahteine
parent 9f44452834
commit cda363a15e

@ -784,6 +784,9 @@ void MarlinUI::update() {
if (ELAPSED(ms, next_button_update_ms)) { if (ELAPSED(ms, next_button_update_ms)) {
encoderDiff = (ENCODER_STEPS_PER_MENU_ITEM) * (ENCODER_PULSES_PER_STEP) * encoderDirection; encoderDiff = (ENCODER_STEPS_PER_MENU_ITEM) * (ENCODER_PULSES_PER_STEP) * encoderDirection;
if (buttons & EN_A) encoderDiff *= -1; if (buttons & EN_A) encoderDiff *= -1;
#if ENABLED(AUTO_BED_LEVELING_UBL)
if (external_control) ubl.encoder_diff = encoderDiff;
#endif
next_button_update_ms = ms + repeat_delay; // Assume the repeat delay next_button_update_ms = ms + repeat_delay; // Assume the repeat delay
if (!wait_for_unclick) { if (!wait_for_unclick) {
next_button_update_ms += 250; // Longer delay on first press next_button_update_ms += 250; // Longer delay on first press
@ -1274,7 +1277,7 @@ void MarlinUI::update() {
} // next_button_update_ms } // next_button_update_ms
#if HAS_ENCODER_WHEEL #if HAS_ENCODER_WHEEL && DISABLED(TOUCH_BUTTONS)
static uint8_t lastEncoderBits; static uint8_t lastEncoderBits;
#define encrot0 0 #define encrot0 0

Loading…
Cancel
Save