-
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: first OR last time stamp is one or two !? less than it should be #308
Comments
Yes it should, thanks. [edit] This comes from ruuvi.firmware.c/src/app_log.c Line 237 in 7ed3bc9
|
@DG12 Hi! Could you please provide additional information on how to reproduce this issue? |
I was doing a in depth study of the history log C code and flash device when I found this. |
@DG12 Thanks for the update. I noticed you already made some changes in this library, however you are planning to do some other changes too? Could you please share what sort of fixes you'll introduce into the code? |
@ojousima The Flash tests seems to be working just fine. After
After
|
I don't know where this display of is from. 3.31.1 release? OR how it relates the this particular anomaly, i.e. n |
Unrelated, that one is caused by off-by-one error in logging data blocks to RAM before flash operation |
Looks like start time stamp is now one OR two ! less than it should be. 0006A000 = DEADC0DE F11E01FE 03EDF008 000000F0 00072000 = DEADC0DE F11E01FE 03EDF010 000000F0 0006F000 = DEADC0DE F11E01FE 03EDF00D 000000F0 00070000 = DEADC0DE F11E01FE 03EDF00E 000000F0 |
This is to keep start and end timestamps of blocks consistent without gaps, new block starts where old ends |
As time_stamp of last element at 72FBC is 1B7 should end_time be 1B7 rather than 1B6 ??
Beginning of first record:
end of first record:
See also issue #309
The text was updated successfully, but these errors were encountered: