-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app_log anomalies: blocks leave several element slots unused #309
Comments
Yes, there is intentionally a bit margin for header. |
Making a constant with a define does not make it a muggle value #define STORAGE_RECORD_HEADER_SIZE (96U) |
True that. It's about filling 4096 byte page to 4000 bytes and leaving the rest for a header. Maybe PHYSICAL_FLASH_PAGE_SIZE - DATA_STORED_IN_PAGE_SIZE or something like that would be better |
I have seen a case where the beginning of the flash page had boot_count record in the beginning of the page and the log history record key starting at page+6 leaving only 10 words unused in that page. |
That's intentional behavior from FDS. It should be noted though that the data logging would be better served by direct access to flash rather than through FDS, but the drivers do not support it as of right now. Related issue ruuvi/ruuvi.drivers.c#108 |
Not a biggie but this is a result of
Actually
so
`#define STORAGE_RECORD_HEADER_SIZE (FDS_PAGE_TAG_SIZE+FDS_HEADER_SIZE) *4
and
`
Beginning of first record
See also issue #308
The text was updated successfully, but these errors were encountered: