Skip to content

Commit

Permalink
Restore SMOOTH_ENCODER_MENUITEMS functionality for release version
Browse files Browse the repository at this point in the history
Fix DEF_PROBEZFIX conditional compile
  • Loading branch information
mriscoc committed Oct 23, 2024
1 parent 404e13a commit 78c615a
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 1 deletion.
Binary file modified Marlin/lib/proui/stm32f1/libproui_abl_dwin.a
Binary file not shown.
Binary file modified Marlin/lib/proui/stm32f1/libproui_abl_ultipanel.a
Binary file not shown.
Binary file modified Marlin/lib/proui/stm32f1/libproui_mbl_dwin.a
Binary file not shown.
Binary file modified Marlin/lib/proui/stm32f1/libproui_mbl_ultipanel.a
Binary file not shown.
Binary file modified Marlin/lib/proui/stm32f1/libproui_ubl_dwin.a
Binary file not shown.
Binary file modified Marlin/lib/proui/stm32f1/libproui_ubl_ultipanel.a
Binary file not shown.
Binary file modified Marlin/lib/proui/stm32f4/libproui_abl_dwin.a
Binary file not shown.
Binary file modified Marlin/lib/proui/stm32f4/libproui_mbl_dwin.a
Binary file not shown.
Binary file modified Marlin/lib/proui/stm32f4/libproui_ubl_dwin.a
Binary file not shown.
Binary file modified Marlin/lib/proui/stm32g0/libproui_abl_dwin.a
Binary file not shown.
Binary file modified Marlin/lib/proui/stm32g0/libproui_mbl_dwin.a
Binary file not shown.
Binary file modified Marlin/lib/proui/stm32g0/libproui_ubl_dwin.a
Binary file not shown.
2 changes: 2 additions & 0 deletions Marlin/src/lcd/e3v2/common/encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ EncoderState encoderReceiveAnalyze() {
return temp_diffState;
}

EncoderState get_encoder_menuitems() { return TERN(SMOOTH_ENCODER_MENUITEMS, get_encoder_state(), encoderReceiveAnalyze()); }

#if PIN_EXISTS(LCD_LED)

// Take the low 24 valid bits 24Bit: G7 G6 G5 G4 G3 G2 G1 G0 R7 R6 R5 R4 R3 R2 R1 R0 B7 B6 B5 B4 B3 B2 B1 B0
Expand Down
3 changes: 3 additions & 0 deletions Marlin/src/lcd/e3v2/common/encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ void encoderConfiguration();
// Analyze encoder value and return state
EncoderState encoderReceiveAnalyze();

// Smooth encoder state for menu items
EncoderState get_encoder_menuitems();

inline EncoderState get_encoder_state() {
static millis_t Encoder_ms = 0;
const millis_t ms = millis();
Expand Down
6 changes: 5 additions & 1 deletion Marlin/src/module/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3307,7 +3307,11 @@ void MarlinSettings::reset() {
#endif
#endif
#if HAS_BED_PROBE
PRO_data.probezfix = TERN0(DEF_PROBEZFIX, DEF_PROBEZFIX);
#ifdef DEF_PROBEZFIX
PRO_data.probezfix = DEF_PROBEZFIX;
#else
PRO_data.probezfix = 0;
#endif
PRO_data.zprobefeedslow = DEF_Z_PROBE_FEEDRATE_SLOW;
PRO_data.multiple_probing = MULTIPLE_PROBING;
#endif
Expand Down

0 comments on commit 78c615a

Please sign in to comment.