diff options
| author | Ian McIntyre <me@mciantyre.dev> | 2025-12-17 19:33:41 -0500 |
|---|---|---|
| committer | Ian McIntyre <me@mciantyre.dev> | 2025-12-17 21:28:52 -0500 |
| commit | fa5b0daeb02bb1775462ac57b353589d983fa2bb (patch) | |
| tree | ef71ac3c591a103df61dfe5c75c911065387d662 /imxrt1170evk/examples | |
| parent | 53f0e5d382b346aa8b8c5cf221fa3b2464ef4617 (diff) | |
Diffstat (limited to 'imxrt1170evk/examples')
| -rw-r--r-- | imxrt1170evk/examples/smoke.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/imxrt1170evk/examples/smoke.rs b/imxrt1170evk/examples/smoke.rs index df91789..63428ac 100644 --- a/imxrt1170evk/examples/smoke.rs +++ b/imxrt1170evk/examples/smoke.rs @@ -14,7 +14,9 @@ fn main() -> ! { let mut sector = [0_u8; Algorithm::sector_size_bytes()]; is25wp.flash_read(0x400, &mut sector[..4]); - defmt::assert!(0x42464346 == u32::from_le_bytes(sector[..4].try_into().unwrap())); + if 0x42464346 != u32::from_le_bytes(sector[..4].try_into().unwrap()) { + defmt::warn!("No FCB found."); + } is25wp.flash_erase_sector(LAST_SECTOR + 256); |
