diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-17 08:05:50 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-17 08:05:50 +0100 |
commit | 91a8b5c46c12fc38427b55cbc83790b5a4af7892 (patch) | |
tree | 46cc50bed92a92b682a40e772625385570d5f3e1 | |
parent | 0ed9482e5935300fe22f462c9fb7c417418a7181 (diff) | |
download | ads1x1x-async-91a8b5c46c12fc38427b55cbc83790b5a4af7892.tar.gz ads1x1x-async-91a8b5c46c12fc38427b55cbc83790b5a4af7892.tar.xz ads1x1x-async-91a8b5c46c12fc38427b55cbc83790b5a4af7892.zip |
Add default implementation for FSR
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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> { |