mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-20 17:29:45 +01:00
adc_i2s: solve the i2s_adc issue when using wifi
This commit is contained in:
@@ -163,7 +163,7 @@ static int hall_sensor_get_value(void) //hall sensor without LNA
|
||||
{
|
||||
int hall_value;
|
||||
|
||||
adc_power_on();
|
||||
adc_power_acquire();
|
||||
|
||||
ADC_ENTER_CRITICAL();
|
||||
/* disable other peripherals. */
|
||||
@@ -175,6 +175,7 @@ static int hall_sensor_get_value(void) //hall sensor without LNA
|
||||
adc_hal_hall_disable();
|
||||
ADC_EXIT_CRITICAL();
|
||||
|
||||
adc_power_release();
|
||||
return hall_value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user