Skip to content

Commit aa605a7

Browse files
committed
[cron] Bump distribution date (2021-07-24)
1 parent b925130 commit aa605a7

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Marlin/Version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
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.

Marlin/src/inc/Version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
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
/**

Marlin/src/lcd/dwin/e3v2/dwin.cpp

+9-1
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)