summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 00c7a79..bb7112b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -394,6 +394,12 @@ impl Default for Config {
}
}
+impl Default for FullScaleRange {
+ fn default() -> Self {
+ FullScaleRange::Within2_048V
+ }
+}
+
/// ADS1x1x ADC driver
#[derive(Debug, Default)]
pub struct Ads1x1x<DI, IC, CONV, MODE> {