|
@@ -784,6 +784,9 @@ void MarlinUI::update() {
|
784
|
784
|
if (ELAPSED(ms, next_button_update_ms)) {
|
785
|
785
|
encoderDiff = (ENCODER_STEPS_PER_MENU_ITEM) * (ENCODER_PULSES_PER_STEP) * encoderDirection;
|
786
|
786
|
if (buttons & EN_A) encoderDiff *= -1;
|
|
787
|
+ #if ENABLED(AUTO_BED_LEVELING_UBL)
|
|
788
|
+ if (external_control) ubl.encoder_diff = encoderDiff;
|
|
789
|
+ #endif
|
787
|
790
|
next_button_update_ms = ms + repeat_delay; // Assume the repeat delay
|
788
|
791
|
if (!wait_for_unclick) {
|
789
|
792
|
next_button_update_ms += 250; // Longer delay on first press
|
|
@@ -1274,7 +1277,7 @@ void MarlinUI::update() {
|
1274
|
1277
|
|
1275
|
1278
|
} // next_button_update_ms
|
1276
|
1279
|
|
1277
|
|
- #if HAS_ENCODER_WHEEL
|
|
1280
|
+ #if HAS_ENCODER_WHEEL && DISABLED(TOUCH_BUTTONS)
|
1278
|
1281
|
static uint8_t lastEncoderBits;
|
1279
|
1282
|
|
1280
|
1283
|
#define encrot0 0
|