Skip to content

Commit 7715d40

Browse files
authored
feat(uart): improve the defined value for UART_CLK_SRC_DEFAULT
1 parent 530fcd0 commit 7715d40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/HardwareSerial.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ typedef enum {
9797
} hardwareSerial_error_t;
9898

9999
typedef enum {
100-
UART_CLK_SRC_DEFAULT = -1,
100+
UART_CLK_SRC_DEFAULT = UART_SCLK_DEFAULT,
101101
#if SOC_UART_SUPPORT_APB_CLK
102102
UART_CLK_SRC_APB = SOC_MOD_CLK_APB,
103103
#endif

0 commit comments

Comments
 (0)