Skip to content

Commit d2eacea

Browse files
Merge pull request #274 from housel/nrf52833-pins-fix
Fix TWIM pin selection for nRF52833
2 parents 069325e + 218bb39 commit d2eacea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nrf-hal-common/src/twim.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ where
6868
// Select pins.
6969
twim.psel.scl.write(|w| {
7070
let w = unsafe { w.pin().bits(pins.scl.pin()) };
71-
#[cfg(feature = "52840")]
71+
#[cfg(any(feature = "52833", feature = "52840"))]
7272
let w = w.port().bit(pins.scl.port().bit());
7373
w.connect().connected()
7474
});
7575
twim.psel.sda.write(|w| {
7676
let w = unsafe { w.pin().bits(pins.sda.pin()) };
77-
#[cfg(feature = "52840")]
77+
#[cfg(any(feature = "52833", feature = "52840"))]
7878
let w = w.port().bit(pins.sda.port().bit());
7979
w.connect().connected()
8080
});

0 commit comments

Comments
 (0)