Skip to content

Commit a17c673

Browse files
authored
fixes setPins return (#8644)
1 parent 44da992 commit a17c673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/esp32/esp32-hal-uart.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ bool uartSetPins(uint8_t uart_num, int8_t rxPin, int8_t txPin, int8_t ctsPin, in
150150
{
151151
if(uart_num >= SOC_UART_NUM) {
152152
log_e("Serial number is invalid, please use numers from 0 to %u", SOC_UART_NUM - 1);
153-
return;
153+
return false;
154154
}
155155

156156
// IDF uart_set_pin() will issue necessary Error Message and take care of all GPIO Number validation.

0 commit comments

Comments
 (0)