We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 200981c commit 6c754e2Copy full SHA for 6c754e2
src/esp32/src/uart.c
@@ -4,7 +4,6 @@
4
* SPDX-License-Identifier: Apache-2.0 OR MIT
5
*/
6
7
-
8
#include <stdint.h>
9
#include <stddef.h>
10
@@ -49,12 +48,12 @@ static uint32_t ets_get_detected_xtal_freq_patch()
49
48
uint32_t high, low;
50
high = REG_READ(RTC_STORE5) >> 16;
51
low = REG_READ(RTC_STORE5) & 0xffff;
52
- if(high == low && high != 0 && high != 0xffff) {
+ if (high == low && high != 0 && high != 0xffff) {
53
clock = high << 12;
54
} else {
55
- REG_WRITE(RTC_STORE5, (clock >> 12) | ((clock >> 12) <<16));
+ REG_WRITE(RTC_STORE5, (clock >> 12) | ((clock >> 12) << 16));
56
}
57
- } while(0);
+ } while (0);
58
return clock;
59
60
0 commit comments