Skip to content

Commit

Permalink
Merge pull request #18 from tweedegolf/hdoordt-patch-1
Browse files Browse the repository at this point in the history
Fix compile error with defmt feature enabled
  • Loading branch information
diondokter authored Jan 9, 2024
2 parents 51ad715 + adb1410 commit 46342e0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,7 @@ pub fn read_items<S: NorFlash, R>(
|flash, header, address| match header.read_item(flash, data_buffer, address, end_address) {
Ok(MaybeItem::Corrupted(_, _)) => {
#[cfg(feature = "defmt")]
defmt::error!(
"Found a corrupted item at {:X}. Skipping...",
current_address
);
defmt::error!("Found a corrupted item at {:X}. Skipping...", address);
ControlFlow::Continue(())
}
Ok(MaybeItem::Erased(_)) => ControlFlow::Continue(()),
Expand Down

0 comments on commit 46342e0

Please sign in to comment.