Skip to content

Commit 6c754e2

Browse files
Apply automatic fixes from pre-commit hooks
1 parent 200981c commit 6c754e2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/esp32/src/uart.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* SPDX-License-Identifier: Apache-2.0 OR MIT
55
*/
66

7-
87
#include <stdint.h>
98
#include <stddef.h>
109

@@ -49,12 +48,12 @@ static uint32_t ets_get_detected_xtal_freq_patch()
4948
uint32_t high, low;
5049
high = REG_READ(RTC_STORE5) >> 16;
5150
low = REG_READ(RTC_STORE5) & 0xffff;
52-
if(high == low && high != 0 && high != 0xffff) {
51+
if (high == low && high != 0 && high != 0xffff) {
5352
clock = high << 12;
5453
} else {
55-
REG_WRITE(RTC_STORE5, (clock >> 12) | ((clock >> 12) <<16));
54+
REG_WRITE(RTC_STORE5, (clock >> 12) | ((clock >> 12) << 16));
5655
}
57-
} while(0);
56+
} while (0);
5857
return clock;
5958
}
6059

0 commit comments

Comments
 (0)