pellepl / spiffs

Wear-leveled SPI flash file system for embedded devices
MIT License
1.52k stars 402 forks source link

datalog value shows double #295

Open delightcheerup opened 1 year ago

delightcheerup commented 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;