File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 41
41
* here we define this default string as the date where the latest release
42
42
* version was tagged.
43
43
*/
44
- //#define STRING_DISTRIBUTION_DATE "2021-07-23 "
44
+ //#define STRING_DISTRIBUTION_DATE "2021-07-24 "
45
45
46
46
/**
47
47
* Defines a generic printer name to be output to the LCD after booting Marlin.
Original file line number Diff line number Diff line change 42
42
* version was tagged.
43
43
*/
44
44
#ifndef STRING_DISTRIBUTION_DATE
45
- #define STRING_DISTRIBUTION_DATE "2021-07-23 "
45
+ #define STRING_DISTRIBUTION_DATE "2021-07-24 "
46
46
#endif
47
47
48
48
/**
Original file line number Diff line number Diff line change @@ -494,7 +494,15 @@ void Draw_Back_First(const bool is_sel=true) {
494
494
if (is_sel) Draw_Menu_Cursor (0 );
495
495
}
496
496
497
- inline bool Apply_Encoder (const ENCODER_DiffState &encoder_diffState, auto &valref) {
497
+ inline bool Apply_Encoder (const ENCODER_DiffState &encoder_diffState, float &valref) {
498
+ if (encoder_diffState == ENCODER_DIFF_CW)
499
+ valref += EncoderRate.encoderMoveValue ;
500
+ else if (encoder_diffState == ENCODER_DIFF_CCW)
501
+ valref -= EncoderRate.encoderMoveValue ;
502
+ return encoder_diffState == ENCODER_DIFF_ENTER;
503
+ }
504
+
505
+ inline bool Apply_Encoder (const ENCODER_DiffState &encoder_diffState, int16_t &valref) {
498
506
if (encoder_diffState == ENCODER_DIFF_CW)
499
507
valref += EncoderRate.encoderMoveValue ;
500
508
else if (encoder_diffState == ENCODER_DIFF_CCW)
You can’t perform that action at this time.
0 commit comments