Skip to content

Questions about E.openFile #7769

Discussion options

You must be logged in to vote

That filesystem issue should really have been fixed. Can you provide me with some code that causes the problem just to be sure? You do have to close files (afaik) when you're done so if you're not doing that you'd run out of memory.

Maybe you could catch the file open error and call E.defrag()? If that works potentially I could add that inside the firmware.

So what happens when you try to read a file opened with w+? I'd be a bit concerned that having two copies of the same file opened at once might cause problems (as changes to the writable one may not immediately appear on the readable one).

Under the hood we use a library called FatFS - it feels like read+write should work. Looking at h…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MercurialPony
Comment options

@gfwilliams
Comment options

@MercurialPony
Comment options

Answer selected by MercurialPony
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants