Skip to content

Commit a1bc749

Browse files
pre-commit-ci-lite[bot]me-no-dev
authored andcommitted
ci(pre-commit): Apply automatic fixes
1 parent 7de5b9c commit a1bc749

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

cores/esp32/esp32-hal-adc.c

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,29 @@
2424
#if CONFIG_IDF_TARGET_ESP32P4 && CONFIG_ESP32P4_REV_MIN_FULL >= 300
2525
// NOTE: These weak definitions allow successful linkage if the real efuse calibration functions are missing.
2626
// This is a workaround for the ESP32P4 rev 3.0+, which is missing efuse calibration functions in the IDF.
27-
__attribute__((weak)) uint32_t esp_efuse_rtc_calib_get_ver(void)
28-
{
29-
return 0;
27+
__attribute__((weak)) uint32_t esp_efuse_rtc_calib_get_ver(void) {
28+
return 0;
3029
}
3130

32-
__attribute__((weak)) uint32_t esp_efuse_rtc_calib_get_init_code(uint32_t atten, uint32_t *code)
33-
{
34-
if (code) {
35-
*code = 0;
36-
}
37-
return 0; // 0 means success in ESP-IDF conventions
31+
__attribute__((weak)) uint32_t esp_efuse_rtc_calib_get_init_code(uint32_t atten, uint32_t *code) {
32+
if (code) {
33+
*code = 0;
34+
}
35+
return 0; // 0 means success in ESP-IDF conventions
3836
}
3937

40-
__attribute__((weak)) uint32_t esp_efuse_rtc_calib_get_chan_compens(uint32_t atten, uint32_t *comp)
41-
{
42-
if (comp) {
43-
*comp = 0;
44-
}
45-
return 0;
38+
__attribute__((weak)) uint32_t esp_efuse_rtc_calib_get_chan_compens(uint32_t atten, uint32_t *comp) {
39+
if (comp) {
40+
*comp = 0;
41+
}
42+
return 0;
4643
}
4744

48-
__attribute__((weak)) uint32_t esp_efuse_rtc_calib_get_cal_voltage(uint32_t atten, uint32_t *voltage)
49-
{
50-
if (voltage) {
51-
*voltage = 0;
52-
}
53-
return 0;
45+
__attribute__((weak)) uint32_t esp_efuse_rtc_calib_get_cal_voltage(uint32_t atten, uint32_t *voltage) {
46+
if (voltage) {
47+
*voltage = 0;
48+
}
49+
return 0;
5450
}
5551
#endif
5652

0 commit comments

Comments
 (0)