mirror of https://github.com/pellepl/spiffs
Browse Source
Iterator bug - if an iteration was callbacked at last page in block -1, the resumed iteration would skip the last page in block. Fixing this revealed another bug, where free page marker was not advanced but pointing to the same page found before when searching for new free page. This is probably not a problem, as when searching for free pages the found free page always becomes occupied. A new free page scan will simply skip the previously found free page, which has been allocated by now. However, it is suboptimal. Also, it might have messed with the wear leveling a bit.pull/94/head
Peter Andersson
9 years ago
3 changed files with 40 additions and 4 deletions
Loading…
Reference in new issue