mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-12-28 02:49:36 +00:00
* 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:
parent
5ba50dd2d2
commit
3daa8412b5
@ -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
|
||||
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user