Skip to content

Commit 2435ffd

Browse files
committed
fix(esp_adc): Release the peripheral after calibration
1 parent adcbdd7 commit 2435ffd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/esp_adc/adc_common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,6 @@ static __attribute__((constructor)) void adc_hw_calibration(void)
7777
}
7878
}
7979
ANALOG_CLOCK_DISABLE();
80+
adc_apb_periph_free();
8081
}
8182
#endif //#if SOC_ADC_CALIBRATION_V1_SUPPORTED

0 commit comments

Comments
 (0)