Skip to content

Commit

Permalink
Fix defmt logs for LFNs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpallant committed Oct 25, 2024
1 parent d89944c commit 1ed2c1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/fat/volume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,13 @@ impl FatVolume {
csum: u8,
buffer: [u16; 13],
) -> Self {
#[cfg(feature = "log")]
debug!("LFN Contents {start} {sequence} {csum:02x} {buffer:04x?}");
#[cfg(feature = "defmt-log")]
debug!(
"LFN Contents {=u8} {=u8} {=u8:02x} {=[?; 13]:#04x}",
start, sequence, csum, buffer
);
match (start, sequence, self) {
(true, 0x01, _) => {
lfn_buffer.clear();
Expand Down

0 comments on commit 1ed2c1a

Please sign in to comment.