Skip to content

Commit b1428b3

Browse files
authored
fix(uart): making the source code the same as in the branch
1 parent 96d4757 commit b1428b3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cores/esp32/HardwareSerial.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ void HardwareSerial::begin(unsigned long baud, uint32_t config, int8_t rxPin, in
364364
#endif
365365
#ifdef TX3
366366
txPin = _txPin < 0 ? (int8_t)TX3 : _txPin;
367-
#else
368367
#endif
369368
}
370369
break;
@@ -384,13 +383,6 @@ void HardwareSerial::begin(unsigned long baud, uint32_t config, int8_t rxPin, in
384383
#endif
385384
}
386385
}
387-
388-
// if no RX/TX pins are defined, it will not start the UART driver
389-
if (rxPin < 0 && txPin < 0) {
390-
log_e("No RX/TX pins defined. Please set RX/TX pins.");
391-
HSERIAL_MUTEX_UNLOCK();
392-
return;
393-
}
394386

395387
// if no RX/TX pins are defined, it will not start the UART driver
396388
if (rxPin < 0 && txPin < 0) {

0 commit comments

Comments
 (0)