Skip to content

Commit

Permalink
Bugfix: drop calibration handle on driver drop; more control on the r… (
Browse files Browse the repository at this point in the history
#470)

* Bugfix: drop calibration handle on driver drop; more control on the raw-to-mv conversion

* Fix variable name

* Rename raw_to_cal to raw_to_mv to have less confusion as to what is going on

* Fix inline example

* Fix CI for the legacy driver

* Fix CI for the oneshot driver

* Fix examples in CI

* Fix wrong fn name
  • Loading branch information
ivmarkov authored Dec 22, 2024
1 parent 63c1537 commit 7632fc3
Show file tree
Hide file tree
Showing 2 changed files with 279 additions and 188 deletions.
1 change: 0 additions & 1 deletion examples/adc_oneshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ fn main() -> anyhow::Result<()> {
// for this example we use the attenuation of 11db which sets the input voltage range to around 0-3.6V
let config = AdcChannelConfig {
attenuation: DB_11,
calibration: true,
..Default::default()
};

Expand Down
Loading

0 comments on commit 7632fc3

Please sign in to comment.