Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ValouBambou opened this issue Feb 28, 2025 · 0 comments · May be fixed by #183
Open

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

ValouBambou opened this issue Feb 28, 2025 · 0 comments · May be fixed by #183

Comments

@ValouBambou
Copy link

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.

@ValouBambou ValouBambou linked a pull request Feb 28, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant