Do not invert ADC1 readings when using ESP32 (#4423) (#4599)

* Do not invert ADC1 readings when using ESP32

* update CHANGELOG.md

(cherry picked from commit b3c2e45cb99e8ac268df9bbf1896f078e596e4f3)

Co-authored-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
github-actions[bot] 2025-12-02 15:04:05 +00:00 committed by GitHub
parent 5ba50dd2d2
commit 3daa8412b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- ESP32: ADC1 readings are no longer inverted (#4423)
### Removed

View File

@ -301,6 +301,9 @@ where
// Do *not* invert the output
// NOTE: This seems backwards, but was verified experimentally.
sensors
.sar_read_ctrl()
.modify(|_, w| w.sar1_data_inv().set_bit());
sensors
.sar_read_ctrl2()
.modify(|_, w| w.sar2_data_inv().set_bit());