fixed another erase count log bug

This commit is contained in:
Peter Andersson
2013-07-26 20:11:12 +02:00
parent 7f0ef5851f
commit b91ac3648d
2 changed files with 3 additions and 0 deletions
Binary file not shown.
+3
View File
@@ -26,6 +26,9 @@ static s32_t spiffs_gc_erase_block(
SPIFFS_CHECK_RES(res);
fs->max_erase_count++;
if (fs->max_erase_count == SPIFFS_OBJ_ID_IX_FLAG) {
fs->max_erase_count = 0;
}
#if SPIFFS_CACHE
{