Fix compile for printer without backlight support
This commit is contained in:
parent
75f389a71d
commit
5a662413e6
1 changed files with 6 additions and 0 deletions
|
@ -8726,7 +8726,9 @@ uint8_t get_message_level()
|
|||
|
||||
void menu_lcd_longpress_func(void)
|
||||
{
|
||||
#ifdef LCD_BL_PIN
|
||||
backlightTimer_reset();
|
||||
#endif //LCD_BL_PIN
|
||||
if (homing_flag || mesh_bed_leveling_flag || menu_menu == lcd_babystep_z || menu_menu == lcd_move_z)
|
||||
{
|
||||
// disable longpress during re-entry, while homing or calibration
|
||||
|
@ -8838,13 +8840,17 @@ void menu_lcd_lcdupdate_func(void)
|
|||
Sound_MakeSound(e_SOUND_TYPE_EncoderMove);
|
||||
lcd_encoder_diff = 0;
|
||||
lcd_timeoutToStatus.start();
|
||||
#ifdef LCD_BL_PIN
|
||||
backlightTimer_reset();
|
||||
#endif //LCD_BL_PIN
|
||||
}
|
||||
|
||||
if (LCD_CLICKED)
|
||||
{
|
||||
lcd_timeoutToStatus.start();
|
||||
#ifdef LCD_BL_PIN
|
||||
backlightTimer_reset();
|
||||
#endif //LCD_BL_PIN
|
||||
}
|
||||
|
||||
(*menu_menu)();
|
||||
|
|
Loading…
Add table
Reference in a new issue