Skip to content

Commit 4ea6ed6

Browse files
authored
Eliminates extra testing for _uart != NULL
1 parent b9c86f8 commit 4ea6ed6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cores/esp32/HardwareSerial.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,7 @@ void HardwareSerial::begin(unsigned long baud, uint32_t config, int8_t rxPin, in
378378
}
379379

380380
// Set UART RX timeout
381-
if (_uart != NULL) {
382-
uartSetRxTimeout(_uart, _rxTimeout);
383-
}
381+
uartSetRxTimeout(_uart, _rxTimeout);
384382

385383
HSERIAL_MUTEX_UNLOCK();
386384
}

0 commit comments

Comments
 (0)