Skip to content

Commit ff88083

Browse files
committed
fix build error with softwareserial lib
1 parent 6ee2212 commit ff88083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/nRF5/Arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ uint32_t setLoopStacksize(void);
122122
#define digitalPinToBitMask(P) ( 1 << (P) )
123123
//#define analogInPinToBit(P) ( )
124124
#define portOutputRegister(port) ( &(port->OUT) )
125-
#define portInputRegister(port) ( &(port->IN) )
125+
#define portInputRegister(port) ( (volatile uint32_t*) &(port->IN) )
126126
#define portModeRegister(port) ( &(port->DIR) )
127127
#define digitalPinHasPWM(P) ( (P) > 1 )
128128

0 commit comments

Comments
 (0)