Skip to content

Should we be using filesystem.c or LFS directly? #91

Answered by joeycastillo
wryun asked this question in Q&A
Discussion options

You must be logged in to vote

It's definitely mostly a set of helper functions; this is some code that was on a branch for a very long time with the hope of writing more robust filesystem functionality, but then merged in just to have something there rather than nothing.

Everything up through line 50 is the underlying support functions that get LFS working with the EEPROM emulation area in the microcontroller; in all likelihood that should move out to the watch library. As for the rest, I would say for now you should interact directly with LFS (it should work on the simulator too) and trust that whatever we come up with for file management will be more robust than the stuff in filesystem.c

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wryun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants