Skip to content

Commit 1ed2c1a

Browse files
Fix defmt logs for LFNs.
1 parent d89944c commit 1ed2c1a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/fat/volume.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,13 @@ impl FatVolume {
567567
csum: u8,
568568
buffer: [u16; 13],
569569
) -> Self {
570+
#[cfg(feature = "log")]
570571
debug!("LFN Contents {start} {sequence} {csum:02x} {buffer:04x?}");
572+
#[cfg(feature = "defmt-log")]
573+
debug!(
574+
"LFN Contents {=u8} {=u8} {=u8:02x} {=[?; 13]:#04x}",
575+
start, sequence, csum, buffer
576+
);
571577
match (start, sequence, self) {
572578
(true, 0x01, _) => {
573579
lfn_buffer.clear();

0 commit comments

Comments
 (0)