Skip to content

Commit deb9c13

Browse files
committed
fix: fix warning for 5340-app feature
1 parent 0517570 commit deb9c13

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nrf-hal-common/src/i2s.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,12 @@ impl I2S {
200200
self.i2s
201201
.config
202202
.swidth
203-
.write(|w| unsafe { w.swidth().bits(width.into()) });
203+
.write(|w| {
204+
#[cfg(not(feature = "5340-app"))]
205+
unsafe { w.swidth().bits(width.into()) }
206+
#[cfg(feature = "5340-app")]
207+
w.swidth().bits(width.into())
208+
});
204209
self
205210
}
206211

0 commit comments

Comments
 (0)