Fix warnings on non-anomalous platforms.
@@ -94,7 +94,6 @@ where
let mut u = Uarte(uarte);
- #[cfg(any(feature = "9160", feature = "5340"))]
u.apply_workaround_for_enable_anomaly();
// Enable UARTE instance.
@@ -103,6 +102,12 @@ where
u
}
+ #[cfg(not(any(feature = "9160", feature = "5340")))]
+ fn apply_workaround_for_enable_anomaly(&mut self)
+ {
+ // Do nothing
+ }
+
#[cfg(any(feature = "9160", feature = "5340"))]
fn apply_workaround_for_enable_anomaly(&mut self)
{
