-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add ISM330DHCX #158
base: main
Are you sure you want to change the base?
Add ISM330DHCX #158
Conversation
@@ -8,6 +8,8 @@ | |||
#![feature(alloc_error_handler)] | |||
// We want to do some floating point math at compile time | |||
#![feature(const_fn_floating_point_arithmetic)] | |||
// Asynchronous IMU sampling | |||
#![feature(async_fn_in_trait)] |
Check warning
Code scanning / clippy
the feature `async_fn_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes
} | ||
|
||
impl<I: I2c> Ism330Dhcx<I> { | ||
pub fn new(mut i2c: I) -> Result<Self, <I as I2c>::Error> { |
Check warning
Code scanning / clippy
associated function `new` is never used
I've not seen this chip before. Do you have one you are using to test? |
If you don't even have the chip in hand, and didn't even run the code, and its a random IMU I've never anyone talk about in discord, I don't understand why you opened a PR. Marking as a draft until someone can test this on hardware. |
I'm going to assume that you acted in good faith and were not trying to spam PRs to prove a point. I'll be drafting up a clarification in the contributing.md making more clear what the bar is for merge. Hopefully that will help avoid these shenanigans in the future. |
This is definitely a petty shenanigan. However, this PR has been tested and verified against a drop-in compatible LSM6DS3TR |
Probably applicable for other ST micro's IMUs #154