smartcitizen-kit-21
smartcitizen-kit-21 copied to clipboard
Dump of potential flash storage issues
This issue is to describe the potential flash storage issues we might still have pending to solve.
The only issue would be to review (which is not priority give the chances for this to happen) is that under certain conditions, it could be that the flash storage can get corrupted, but we have no way to handle this corruption at all. We need to be able to handle the situation when the flash is corrupt and don't prevent the kit from working.
In the append
function, there should be a way to handle the problem:
https://github.com/fablabbcn/smartcitizen-kit-21/blob/dev/sam/src/SckList.cpp#L55-L65
To do this, we could backup the corrupt sector in the next one and erase the corrupt one.