File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 4141 * here we define this default string as the date where the latest release
4242 * version was tagged.
4343 */
44- //#define STRING_DISTRIBUTION_DATE "2021-07-23 "
44+ //#define STRING_DISTRIBUTION_DATE "2021-07-24 "
4545
4646/**
4747 * Defines a generic printer name to be output to the LCD after booting Marlin.
Original file line number Diff line number Diff line change 4242 * version was tagged.
4343 */
4444#ifndef STRING_DISTRIBUTION_DATE
45- #define STRING_DISTRIBUTION_DATE "2021-07-23 "
45+ #define STRING_DISTRIBUTION_DATE "2021-07-24 "
4646#endif
4747
4848/**
Original file line number Diff line number Diff line change @@ -494,7 +494,15 @@ void Draw_Back_First(const bool is_sel=true) {
494494 if (is_sel) Draw_Menu_Cursor (0 );
495495}
496496
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) {
498506 if (encoder_diffState == ENCODER_DIFF_CW)
499507 valref += EncoderRate.encoderMoveValue ;
500508 else if (encoder_diffState == ENCODER_DIFF_CCW)
You can’t perform that action at this time.
0 commit comments