LVGL / FS : Initialize the LVGL FS driver in LittleVgl (instead of FS).

Previously, the LVGL driver for the filesystem was initialized in the class FS. However, since 6f942e2, the order of the initializations was incorrect  : the driver was initialized (FS::LVGLFileSystemInit()) before LVGL (LittleVgl.Init()), which means that the driver registration was probably dropped when LVGL was initialized.

The LVGL driver is now initialized in LittleVgl.Init(), which seems to make much more sense, since all LVGL drivers are initialized there. This way, we ensure that the initialization of the drivers is consistent.
This commit is contained in:
Jean-François Milants
2023-02-26 20:33:34 +01:00
committed by Riku Isokoski
parent ce2277cbca
commit 9bbd2ddbc4
5 changed files with 62 additions and 67 deletions

View File

@@ -91,7 +91,7 @@ DisplayApp::DisplayApp(Drivers::St7789& lcd,
brightnessController {brightnessController},
touchHandler {touchHandler},
filesystem {filesystem},
lvgl {lcd} {
lvgl {lcd, filesystem} {
}
void DisplayApp::Start(System::BootErrors error) {