Skip to content

Commit 5502284

Browse files
author
Jonathan Pallant (42 Technology)
committed
Fix warnings on non-anomalous platforms.
1 parent bdd35ed commit 5502284

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nrf-hal-common/src/uarte.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ where
9494

9595
let mut u = Uarte(uarte);
9696

97-
#[cfg(any(feature = "9160", feature = "5340"))]
9897
u.apply_workaround_for_enable_anomaly();
9998

10099
// Enable UARTE instance.
@@ -103,6 +102,12 @@ where
103102
u
104103
}
105104

105+
#[cfg(not(any(feature = "9160", feature = "5340")))]
106+
fn apply_workaround_for_enable_anomaly(&mut self)
107+
{
108+
// Do nothing
109+
}
110+
106111
#[cfg(any(feature = "9160", feature = "5340"))]
107112
fn apply_workaround_for_enable_anomaly(&mut self)
108113
{

0 commit comments

Comments
 (0)