|
@@ -251,9 +251,10 @@ float raw_Ki, raw_Kd;
|
251
|
251
|
static void lcd_goto_menu(menuFunc_t menu, const uint32_t encoder=0, const bool feedback=true) {
|
252
|
252
|
if (currentMenu != menu) {
|
253
|
253
|
currentMenu = menu;
|
254
|
|
- encoderPosition = encoder;
|
255
|
|
- if (feedback) lcd_quick_feedback();
|
256
|
|
-
|
|
254
|
+ #if defined(NEWPANEL)
|
|
255
|
+ encoderPosition = encoder;
|
|
256
|
+ if (feedback) lcd_quick_feedback();
|
|
257
|
+ #endif
|
257
|
258
|
// For LCD_PROGRESS_BAR re-initialize the custom characters
|
258
|
259
|
#ifdef LCD_PROGRESS_BAR
|
259
|
260
|
lcd_set_custom_characters(menu == lcd_status_screen);
|
|
@@ -1259,7 +1260,9 @@ int lcd_strlen_P(const char *s) {
|
1259
|
1260
|
}
|
1260
|
1261
|
|
1261
|
1262
|
void lcd_update() {
|
1262
|
|
- static unsigned long timeoutToStatus = 0;
|
|
1263
|
+ #ifdef ULTIPANEL
|
|
1264
|
+ static unsigned long timeoutToStatus = 0;
|
|
1265
|
+ #endif
|
1263
|
1266
|
|
1264
|
1267
|
#ifdef LCD_HAS_SLOW_BUTTONS
|
1265
|
1268
|
slow_buttons = lcd_implementation_read_slow_buttons(); // buttons which take too long to read in interrupt context
|