Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip overwriting slots.bin if we fail to read the existing contents #465

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nyanpasu64
Copy link
Collaborator

Hopefully should guard against slots.bin corruption when the GBS-C crashes.

I haven't actually seen reading slots.bin fail since adding this check. I'll merge it if it happens and prevents corruption.

Do we trust SPIFFS at all?

Hopefully should guard against slots.bin corruption when the GBS-C
crashes.
@nyanpasu64 nyanpasu64 marked this pull request as ready for review June 10, 2023 19:22
@nyanpasu64
Copy link
Collaborator Author

nyanpasu64 commented Jun 10, 2023

will just merge it, it can't hurt

...or idk even, how spiffs_hydro_read works

is the problem that running wifi callbacks in a deep call stack (talking to hardware) overflows the stack, and SlotMetaArray slotsObject; gets overwritten when we run request->getParam(0)?

@nyanpasu64 nyanpasu64 marked this pull request as draft June 10, 2023 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant