Skip to content

Commit b95906f

Browse files
authored
fix(uart): commentaries style fix
1 parent e5a57f5 commit b95906f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cores/esp32/esp32-hal-uart.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -325,15 +325,15 @@ static bool _uartTrySetIomuxPin(uart_port_t uart_num, int io_num, uint32_t idx)
325325
}
326326
}
327327
#if (SOC_UART_LP_NUM >= 1) && (SOC_RTCIO_PIN_COUNT >= 1)
328-
else {
329-
if (upin->input) {
330-
rtc_gpio_set_direction(io_num, RTC_GPIO_MODE_INPUT_ONLY);
331-
} else {
332-
rtc_gpio_set_direction(io_num, RTC_GPIO_MODE_OUTPUT_ONLY);
333-
}
334-
rtc_gpio_init(io_num);
335-
rtc_gpio_iomux_func_sel(io_num, upin->iomux_func);
328+
else {
329+
if (upin->input) {
330+
rtc_gpio_set_direction(io_num, RTC_GPIO_MODE_INPUT_ONLY);
331+
} else {
332+
rtc_gpio_set_direction(io_num, RTC_GPIO_MODE_OUTPUT_ONLY);
336333
}
334+
rtc_gpio_init(io_num);
335+
rtc_gpio_iomux_func_sel(io_num, upin->iomux_func);
336+
}
337337
#endif
338338
return true;
339339
}

0 commit comments

Comments
 (0)