Skip to content

Commit b33f74a

Browse files
committed
Use internal pin numbers for _p_twi->PSELSCL and _p_twi->PSELSDA
1 parent da26bbb commit b33f74a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/Wire/Wire_nRF51.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ void TwoWire::begin(void) {
7171

7272
_p_twi->FREQUENCY = (TWI_FREQUENCY_FREQUENCY_K100 << TWI_FREQUENCY_FREQUENCY_Pos);
7373
_p_twi->ENABLE = (TWI_ENABLE_ENABLE_Enabled << TWI_ENABLE_ENABLE_Pos);
74-
_p_twi->PSELSCL = _uc_pinSCL;
75-
_p_twi->PSELSDA = _uc_pinSDA;
74+
_p_twi->PSELSCL = pinSCL;
75+
_p_twi->PSELSDA = pinSDA;
7676
}
7777

7878
void TwoWire::setClock(uint32_t baudrate) {

0 commit comments

Comments
 (0)