Skip to content

Compile error in user code when using defmt-log feature #182

@ValouBambou

Description

@ValouBambou

When writing an application for rp2040 using this library I run into this compile error (which doesn't appear when building the library in its own project).

error[E0308]: mismatched types
   --> /home/val/.cargo/git/checkouts/embedded-sdmmc-rs-e7242a4f827ce914/7b15cf5/src/./inner/fat/volume.rs:598:17
    |
598 | /                 debug!(
599 | |                     "LFN Contents {=u8} {=u8} {=u8:02x} {=[?; 13]:#04x}",
600 | |                     start, sequence, csum, buffer
601 | |                 );
    | |                 ^
    | |                 |
    | |_________________expected `&u8`, found `&bool`
    |                   arguments to this function are incorrect
    |
    = note: expected reference `&u8`
               found reference `&bool`

I will do a quick PR to solve this, since changing the first {=u8} to {=bool} solves the problem on a smaller example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions