Skip to content

Commit 038af27

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 57fb057 commit 038af27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1390,10 +1390,10 @@ int uart_send_msg_with_break(uint8_t uartNum, uint8_t *msg, size_t msgSize) {
13901390
uint16_t uart_get_max_rx_timeout(uint8_t uartNum) {
13911391
if (uartNum >= SOC_UART_NUM) {
13921392
log_e("UART%d is invalid. This device has %d UARTs, from 0 to %d.", uartNum, SOC_UART_NUM, SOC_UART_NUM - 1);
1393-
return (uint16_t) -1;
1393+
return (uint16_t)-1;
13941394
}
13951395
uint16_t tout_max_thresh = uart_ll_max_tout_thrd(UART_LL_GET_HW(uartNum));
1396-
uint8_t symbol_len = 1; // number of bits per symbol including start
1396+
uint8_t symbol_len = 1; // number of bits per symbol including start
13971397
uart_parity_t parity_mode;
13981398
uart_stop_bits_t stop_bit;
13991399
uart_word_length_t data_bit;
@@ -1403,7 +1403,7 @@ uint16_t uart_get_max_rx_timeout(uint8_t uartNum) {
14031403
symbol_len += (data_bit < UART_DATA_BITS_MAX) ? (uint8_t)data_bit + 5 : 8;
14041404
symbol_len += (stop_bit > UART_STOP_BITS_1) ? 2 : 1;
14051405
symbol_len += (parity_mode > UART_PARITY_DISABLE) ? 1 : 0;
1406-
return (uint16_t) (tout_max_thresh / symbol_len);
1406+
return (uint16_t)(tout_max_thresh / symbol_len);
14071407
}
14081408

14091409
#endif /* SOC_UART_SUPPORTED */

0 commit comments

Comments
 (0)