Browse Source

Fix Ender 3 V2 encoder (#20784)

Jelmer van der Stel 4 years ago
parent
commit
9dba7cd371
No account linked to committer's email address
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      Marlin/src/lcd/dwin/e3v2/dwin.cpp

+ 1
- 2
Marlin/src/lcd/dwin/e3v2/dwin.cpp View File

@@ -502,8 +502,7 @@ inline bool Apply_Encoder(const ENCODER_DiffState &encoder_diffState, auto &valr
502 502
     valref += EncoderRate.encoderMoveValue;
503 503
   else if (encoder_diffState == ENCODER_DIFF_CCW)
504 504
     valref -= EncoderRate.encoderMoveValue;
505
-  else if (encoder_diffState == ENCODER_DIFF_ENTER)
506
-    return true;
505
+  return encoder_diffState == ENCODER_DIFF_ENTER;
507 506
 }
508 507
 
509 508
 //

Loading…
Cancel
Save