Skip to content

Commit

Permalink
Use correct trait and update release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
diondokter committed Jan 2, 2024
1 parent 2fa9d88 commit c75633c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ When using peek_many, you can look at all data from oldest to newest.
### Unreleased

- *Breaking* Data CRC has been upgraded to 32-bit from 16-bit. Turns out 16-bit has too many collisions.
This increases the item header size from 6 to 8.
- Closed pages that were partially erased now can be detected and repaired. This comes at the cost of always
reading both page markers to determine the page state.
- Item migration that happens in `map` that is interrupted by a shutoff can now be repaired.
- Made changes to queue to better survive shutoffs
This increases the item header size from 6 to 8. The CRC was also moved to the front of the header to
aid with shutdown/cancellation issues.
- When the state is corrupted, many issues can now be repaired with the repair functions in the map and queue modules
- Made changes to the entire to better survive shutoffs

### 0.6.2 - 22-12-23

Expand Down
4 changes: 1 addition & 3 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@
use core::ops::ControlFlow;

use embedded_storage::nor_flash::MultiwriteNorFlash;

use crate::item::{find_next_free_item_spot, read_items, Item, ItemHeader};

use super::*;
Expand Down Expand Up @@ -601,7 +599,7 @@ fn migrate_items<I: StorageItem, S: NorFlash>(
/// If this function or the function call after this crate returns [Error::Corrupted], then it's unlikely
/// that the state can be recovered. To at least make everything function again at the cost of losing the data,
/// erase the flash range.
pub fn try_repair<I: StorageItem, S: MultiwriteNorFlash>(
pub fn try_repair<I: StorageItem, S: NorFlash>(
flash: &mut S,
flash_range: Range<u32>,
data_buffer: &mut [u8],
Expand Down

0 comments on commit c75633c

Please sign in to comment.