We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9496629 commit 4024202Copy full SHA for 4024202
cores/esp32/esp32-hal-uart.c
@@ -73,7 +73,7 @@ static uart_t _uart_bus_array[] = {
73
// baudrate must be multiplied when CPU Frequency is lower than APB 80MHz
74
uint32_t _get_effective_baudrate(uint32_t baudrate)
75
{
76
- uint32_t Freq = getCpuFrequencyMhz();
+ uint32_t Freq = getApbFrequency()/1000000;
77
if (Freq < 80) {
78
return 80 / Freq * baudrate;
79
}
0 commit comments