From 91a8b5c46c12fc38427b55cbc83790b5a4af7892 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sat, 17 Nov 2018 08:05:50 +0100 Subject: Add default implementation for FSR --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 { -- cgit v1.2.3-54-g00ecf