lcd/backpack: Enable backlight if CONFIG_SLCD_CONSOLE
This commit is contained in:
parent
837fa3c0ac
commit
a06aa8e512
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue