Merge pull request #1877 from AnHardt/display-only
Made encoderPosition and quick_feedback dependant on NEWPANEL
This commit is contained in:
commit
7a1aef1450
@ -251,9 +251,10 @@ float raw_Ki, raw_Kd;
|
|||||||
static void lcd_goto_menu(menuFunc_t menu, const uint32_t encoder=0, const bool feedback=true) {
|
static void lcd_goto_menu(menuFunc_t menu, const uint32_t encoder=0, const bool feedback=true) {
|
||||||
if (currentMenu != menu) {
|
if (currentMenu != menu) {
|
||||||
currentMenu = menu;
|
currentMenu = menu;
|
||||||
|
#if defined(NEWPANEL)
|
||||||
encoderPosition = encoder;
|
encoderPosition = encoder;
|
||||||
if (feedback) lcd_quick_feedback();
|
if (feedback) lcd_quick_feedback();
|
||||||
|
#endif
|
||||||
// For LCD_PROGRESS_BAR re-initialize the custom characters
|
// For LCD_PROGRESS_BAR re-initialize the custom characters
|
||||||
#ifdef LCD_PROGRESS_BAR
|
#ifdef LCD_PROGRESS_BAR
|
||||||
lcd_set_custom_characters(menu == lcd_status_screen);
|
lcd_set_custom_characters(menu == lcd_status_screen);
|
||||||
@ -1259,7 +1260,9 @@ int lcd_strlen_P(const char *s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void lcd_update() {
|
void lcd_update() {
|
||||||
|
#ifdef ULTIPANEL
|
||||||
static unsigned long timeoutToStatus = 0;
|
static unsigned long timeoutToStatus = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef LCD_HAS_SLOW_BUTTONS
|
#ifdef LCD_HAS_SLOW_BUTTONS
|
||||||
slow_buttons = lcd_implementation_read_slow_buttons(); // buttons which take too long to read in interrupt context
|
slow_buttons = lcd_implementation_read_slow_buttons(); // buttons which take too long to read in interrupt context
|
||||||
|
Loading…
Reference in New Issue
Block a user