Skip to content

Commit

Permalink
Make import conditional to avoid unused import warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Dec 20, 2023
1 parent db8641e commit 8e074f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rp2040-hal/src/pwm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
//! min_config() leaves those registers in the state they were before it was called (Careful, this can lead to unexpected behavior)
//! It's recommended to only call min_config() after calling default_config() on a pin that shares a PWM block.
use core::{convert::Infallible, marker::PhantomData};
#[cfg(feature = "eh1_0_alpha")]
use core::convert::Infallible;
use core::marker::PhantomData;

#[cfg(feature = "eh1_0_alpha")]
use eh1_0_alpha::pwm::{ErrorType, SetDutyCycle};
Expand Down

0 comments on commit 8e074f3

Please sign in to comment.