Allow override of ENCODER_FEEDRATE_DEADZONE, lower default for Viki
This commit is contained in:
parent
9b1ba1012a
commit
10ebf28ee3
1 changed files with 6 additions and 2 deletions
|
@ -189,9 +189,10 @@ uint8_t lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; // Set when the LCD needs to
|
||||||
static void menu_action_sddirectory(const char* filename, char* longFilename);
|
static void menu_action_sddirectory(const char* filename, char* longFilename);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ENCODER_FEEDRATE_DEADZONE 10
|
|
||||||
|
|
||||||
#if DISABLED(LCD_I2C_VIKI)
|
#if DISABLED(LCD_I2C_VIKI)
|
||||||
|
#ifndef ENCODER_FEEDRATE_DEADZONE
|
||||||
|
#define ENCODER_FEEDRATE_DEADZONE 10
|
||||||
|
#endif
|
||||||
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
||||||
#define ENCODER_STEPS_PER_MENU_ITEM 5
|
#define ENCODER_STEPS_PER_MENU_ITEM 5
|
||||||
#endif
|
#endif
|
||||||
|
@ -199,6 +200,9 @@ uint8_t lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; // Set when the LCD needs to
|
||||||
#define ENCODER_PULSES_PER_STEP 1
|
#define ENCODER_PULSES_PER_STEP 1
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
#ifndef ENCODER_FEEDRATE_DEADZONE
|
||||||
|
#define ENCODER_FEEDRATE_DEADZONE 4
|
||||||
|
#endif
|
||||||
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
||||||
#define ENCODER_STEPS_PER_MENU_ITEM 2 // VIKI LCD rotary encoder uses a different number of steps per rotation
|
#define ENCODER_STEPS_PER_MENU_ITEM 2 // VIKI LCD rotary encoder uses a different number of steps per rotation
|
||||||
#endif
|
#endif
|
||||||
|
|
Reference in a new issue