diff options
Diffstat (limited to 'src/storage.cc')
-rw-r--r-- | src/storage.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage.cc b/src/storage.cc index 6a85e22..042b778 100644 --- a/src/storage.cc +++ b/src/storage.cc @@ -253,7 +253,7 @@ void Storage::load(uint8_t idx, uint8_t *data) i2c_read(0, 1 + idx, 1, &page_offset); i2c_read(1 + (page_offset / 8), (page_offset % 8) * 32, 2, header); - i2c_read(1 + (page_offset / 8), (page_offset % 8) * 32, header[1] + 2, data); + i2c_read(1 + (page_offset / 8), (page_offset % 8) * 32, header[1] + 4, data); } void Storage::save(uint8_t *data) |