Skip to content

Commit 7b881bb

Browse files
committed
HardwareSerial BUG Rx pin floating input, arduino#48
1 parent 3f1a0ff commit 7b881bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/arduino/Uart.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ void Uart::begin(unsigned long baudrate)
3636

3737
void Uart::begin(unsigned long baudrate, uint8_t config)
3838
{
39+
pinMode(uc_pinRX,INPUT_PULLUP);//Rx pin set INPUT_PULLUP mode
3940
pinPeripheral(uc_pinRX, PIO_SERCOM);
4041
pinPeripheral(uc_pinTX, PIO_SERCOM);
4142

0 commit comments

Comments
 (0)