From 9bbd2ddbc4e44742913e35e25b21b80d80efe36b Mon Sep 17 00:00:00 2001 From: Jean-François Milants Date: Sun, 26 Feb 2023 20:33:34 +0100 Subject: 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. --- src/components/fs/FS.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/components/fs/FS.h') diff --git a/src/components/fs/FS.h b/src/components/fs/FS.h index 9730e474..aba30509 100644 --- a/src/components/fs/FS.h +++ b/src/components/fs/FS.h @@ -11,7 +11,6 @@ namespace Pinetime { FS(Pinetime::Drivers::SpiNorFlash&); void Init(); - void LVGLFileSystemInit(); int FileOpen(lfs_file_t* file_p, const char* fileName, const int flags); int FileClose(lfs_file_t* file_p); -- cgit v1.2.3-70-g09d2