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

I2cdev doesn't implement Debug #88

Open
long568 opened this issue May 30, 2024 · 0 comments · May be fixed by #90
Open

I2cdev doesn't implement Debug #88

long568 opened this issue May 30, 2024 · 0 comments · May be fixed by #90

Comments

@long568
Copy link

long568 commented May 30, 2024

I try ro define a struct like this:

use linux_embedded_hal::I2cdev;
use pwm_pca9685::{Address, Channel, Pca9685};

#[derive(Debug)]
pub struct Executor {
    ll: Leg,
    rl: Leg,
    lf: Foot,
    rf: Foot,
    pwm: Pca9685<I2cdev>, // ERROR
}

but, I got a error:
I2cdev doesn't implement Debug
the trait Debug is not implemented for I2cdev, which is required by &Pca9685<I2cdev>: Debug
the trait Debug is implemented for Pca9685<I2C>
Dose I2cdev define with [drive(Debug)] ?

@eldruin eldruin linked a pull request Feb 7, 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