Skip to content

Commit edcc63a

Browse files
fix(esp-hal/esp32): Fix switched ADC channel numbers on esp32 (#3908)
* fix(esp-hal): Fix switched ADC channel numbers on esp32 * chore: Update CHANGELOG.md * chore(esp-hal): Fix switch comments
1 parent 90fb975 commit edcc63a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

esp-hal/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3232
- PSRAM on ESP32-S2 (#3811)
3333
- WDT now allows configuring longer timeouts (#3816)
3434
- `ADC2` now cannot be used simultaneously with `radio` on ESP32 (#3876)
35+
- Switched GPIO32 and GPIO33 ADC channel numbers (#3908)
3536

3637
### Removed
3738

esp-hal/src/analog/adc/esp32.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ mod adc_implementation {
404404
(GPIO37<'_>, 1), // Alt. name: SENSOR_CAPP
405405
(GPIO38<'_>, 2), // Alt. name: SENSOR_CAPN
406406
(GPIO39<'_>, 3), // Alt. name: SENSOR_VN
407-
(GPIO33<'_>, 4), // Alt. name: 32K_XP
408-
(GPIO32<'_>, 5), // Alt. name: 32K_XN
407+
(GPIO32<'_>, 4), // Alt. name: 32K_XP
408+
(GPIO33<'_>, 5), // Alt. name: 32K_XN
409409
(GPIO34<'_>, 6), // Alt. name: VDET_1
410410
(GPIO35<'_>, 7), // Alt. name: VDET_2
411411
]

0 commit comments

Comments
 (0)