Skip to content

Conversation

@Noxime
Copy link
Contributor

@Noxime Noxime commented Jan 25, 2023

Probably applicable for other ST micro's IMUs #154

@Noxime Noxime requested a review from TheButlah as a code owner January 25, 2023 21:15
// 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

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

associated function `new` is never used
@TheButlah
Copy link
Collaborator

I've not seen this chip before. Do you have one you are using to test?

@Noxime Noxime added the Area: Firmware Relating to the firmware subprojct label Jan 25, 2023
@TheButlah TheButlah added the Type: Enhancement A new feature or improvement label Jan 25, 2023
@TheButlah
Copy link
Collaborator

TheButlah commented Jan 26, 2023

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.

@TheButlah TheButlah closed this Jan 26, 2023
@TheButlah TheButlah added Status: Help Wanted Requires help from another person to progress Status: Needs Hardware Requires testing on hardware to progress labels Jan 26, 2023
@TheButlah TheButlah reopened this Jan 26, 2023
@TheButlah TheButlah marked this pull request as draft January 26, 2023 10:02
@TheButlah
Copy link
Collaborator

TheButlah commented Jan 26, 2023

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.

@Noxime
Copy link
Contributor Author

Noxime commented Jan 26, 2023

This is definitely a petty shenanigan. However, this PR has been tested and verified against a drop-in compatible LSM6DS3TR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Firmware Relating to the firmware subprojct Status: Help Wanted Requires help from another person to progress Status: Needs Hardware Requires testing on hardware to progress Type: Enhancement A new feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants