Open delightcheerup opened 1 year ago
when datalog happened it will store inside the file, but the problem is after that it will again go inside the if condition instead of else and double the data stored inside the same file
if (res == SPIFFS_OK) { d->block = bix; d->entry = entry + 1; e->obj_id &= ~SPIFFS_OBJ_ID_IX_FLAG; ret = e; } else { d->fs->err_code = res; } SPIFFS_UNLOCK(d->fs); return ret;
when datalog happened it will store inside the file, but the problem is after that it will again go inside the if condition instead of else and double the data stored inside the same file
if (res == SPIFFS_OK) { d->block = bix; d->entry = entry + 1; e->obj_id &= ~SPIFFS_OBJ_ID_IX_FLAG; ret = e; } else { d->fs->err_code = res; } SPIFFS_UNLOCK(d->fs); return ret;