lcd/backpack: Enable backlight if CONFIG_SLCD_CONSOLE

This commit is contained in:
Alan C. Assis 2021-03-14 19:59:30 -03:00 committed by Xiang Xiao
parent 837fa3c0ac
commit a06aa8e512
1 changed files with 6 additions and 0 deletions

View File

@ -1670,6 +1670,12 @@ int pcf8574_lcd_backpack_register(FAR const char *devpath,
lcd_init(priv);
/* If SLCD is console enable the backlight from start */
#ifdef CONFIG_SLCD_CONSOLE
lcd_backlight(priv, true);
#endif
/* Register the character driver */
ret = register_driver(devpath, &g_pcf8574_lcd_fops, 0666, priv);