InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.65k stars 912 forks source link

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

Closed JF002 closed 1 year ago

JF002 commented 1 year ago

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.

github-actions[bot] commented 1 year ago
Build size and comparison to develop: Section Size Difference
text 406768B 16B
data 940B 0B
bss 53568B 0B
JF002 commented 1 year ago

Sorry for all these force pushes... I'm fixing formatting errors :)