insippo / arduino-edb

Automatically exported from code.google.com/p/arduino-edb
0 stars 0 forks source link

Error in open() #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
EDB_table_ptr should be updated in open()

// reads an existing edb header at a given recno and sets header values
EDB_Status EDB::open(unsigned long head_ptr)
{
  EDB_head_ptr = head_ptr;
  EDB_table_ptr = sizeof(EDB_Header) + EDB_head_ptr; // <<--- add this
  readHead();
  return EDB_OK;
}

Original issue reported on code.google.com by oleh.sok...@gmail.com on 4 Jul 2015 at 10:11

GoogleCodeExporter commented 8 years ago
I run into the same issue. And can confirm that the line shown above is missing 
in the open method:
EDB_table_ptr = sizeof(EDB_Header) + EDB_head_ptr;

Original comment by era...@googlemail.com on 4 Aug 2015 at 5:24