diff --git a/CHANGELOG.md b/CHANGELOG.md index 05ea4dcf3..aee0e1ae5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - ESP32-S3: Move PSRAM related function to RAM (#546) - ADC driver will now apply attenuation values to the correct ADC's channels. (#554) - Sometimes half-duplex non-DMA SPI reads were reading garbage in non-release mode (#552) +- ESP32-C3: Fix GPIO5 ADC channel id (#562) ### Changed diff --git a/esp-hal-common/src/analog/adc/riscv.rs b/esp-hal-common/src/analog/adc/riscv.rs index 5639e4296..a2cf87dca 100644 --- a/esp-hal-common/src/analog/adc/riscv.rs +++ b/esp-hal-common/src/analog/adc/riscv.rs @@ -337,7 +337,7 @@ pub mod implementation { impl_adc_interface! { ADC2 [ - (Gpio5, 4), + (Gpio5, 0), ] } }