@ -1110,7 +1110,7 @@ static void lcd_control_volumetric_menu() {
# ifdef HAS_LCD_CONTRAST
# ifdef HAS_LCD_CONTRAST
static void lcd_set_contrast ( ) {
static void lcd_set_contrast ( ) {
if ( encoderPosition ! = 0 ) {
if ( encoderPosition ! = 0 ) {
# ifdef ELB_FULL_GRAPHIC_CONTROLLER
# ifdef U8GLIB_ST7920
lcd_contrast + = encoderPosition ;
lcd_contrast + = encoderPosition ;
lcd_contrast & = 0xFF ;
lcd_contrast & = 0xFF ;
# else
# else
@ -1121,12 +1121,13 @@ static void lcd_control_volumetric_menu() {
lcdDrawUpdate = 1 ;
lcdDrawUpdate = 1 ;
u8g . setContrast ( lcd_contrast ) ;
u8g . setContrast ( lcd_contrast ) ;
}
}
if ( lcdDrawUpdate )
if ( lcdDrawUpdate ) {
# ifdef ELB_FULL_GRAPHIC_CONTROLLER
# ifdef U8GLIB_ST7920
lcd_implementation_drawedit ( PSTR ( MSG_CONTRAST ) , itostr3 ( lcd_contrast ) ) ;
lcd_implementation_drawedit ( PSTR ( MSG_CONTRAST ) , itostr3 ( lcd_contrast ) ) ;
# else
# else
lcd_implementation_drawedit ( PSTR ( MSG_CONTRAST ) , itostr2 ( lcd_contrast ) ) ;
lcd_implementation_drawedit ( PSTR ( MSG_CONTRAST ) , itostr2 ( lcd_contrast ) ) ;
# endif
# endif
}
if ( LCD_CLICKED ) lcd_goto_menu ( lcd_control_menu ) ;
if ( LCD_CLICKED ) lcd_goto_menu ( lcd_control_menu ) ;
}
}
# endif // HAS_LCD_CONTRAST
# endif // HAS_LCD_CONTRAST