Comments (4)
In had the same problem and figured out how to fix it:
The function readHead() should also update the EDB_table_ptr, otherwise this
one will be wrong and all record access after that has the wrong address:
// reads EDB_Header
void EDB::readHead()
{
edbRead(EDB_head_ptr, EDB_REC EDB_head, (unsigned long)sizeof(EDB_Header));
EDB_table_ptr = sizeof(EDB_Header) + EDB_head_ptr;
}
Like this it is the reverse of the code in create().
Original comment by [email protected]
on 8 Jun 2011 at 10:24
from edb.
On second thought, it should probably be the open function that be fixed. A
patch is attached.
Original comment by [email protected]
on 9 Jun 2011 at 8:00
Attachments:
from edb.
Patch fixes the issue.
Original comment by [email protected]
on 24 Dec 2011 at 6:08
from edb.
Fixed
from edb.
Related Issues (20)
- May I partially update Struct? HOT 1
- Problem with two array of char in the struct table when disconnect and connect board
- how to change data structure of existing table
- QUESTION: Nested structs support?
- To have multiple databases
- blockwise write in SPIFFS to speed things up HOT 2
- corrupting data
- db.open() function returns Zero HOT 1
- Is it possible to create multiple tables with db.create()? HOT 4
- Warning C++ forbids converting a string constant to 'char* building SPIFFS demo
- Read bug in Example EDB_SDCARD_Optimized.ino HOT 1
- db.count error when using multiple tables
- db.open() not working?
- Examples are broken - wrong data stored/returned HOT 1
- Read files from the pc
- do not use EDB.h for multiple databases
- How to make the library work for SD card usage is by doing the following:
- ESP32 SPIFFS incredibly slow?
- Read db file on pc
- SPIFFS running in a xTaskCreate (multithreaded)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edb.