mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-10-03 07:05:41 +00:00
ADC_ATTEN_MAX no longer defined in ESP-IDF master
This commit is contained in:
parent
a1dfd2eeb1
commit
ceb9dea245
@ -139,7 +139,7 @@ pub struct PoweredAdc<ADC: Adc> {
|
|||||||
resolution: config::Resolution,
|
resolution: config::Resolution,
|
||||||
#[cfg(esp_idf_comp_esp_adc_cal_enabled)]
|
#[cfg(esp_idf_comp_esp_adc_cal_enabled)]
|
||||||
cal_characteristics:
|
cal_characteristics:
|
||||||
Option<[Option<esp_adc_cal_characteristics_t>; adc_atten_t_ADC_ATTEN_MAX as usize + 1]>,
|
Option<[Option<esp_adc_cal_characteristics_t>; adc_atten_t_ADC_ATTEN_DB_11 as usize + 1]>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "riscv-ulp-hal"))]
|
#[cfg(not(feature = "riscv-ulp-hal"))]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user