From 8e41c44303605a64790857a47fd8f7849b1e5599 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 21 Mar 2020 00:06:27 +0100 Subject: [PATCH] adc: use ref_sel=external --- src/ad7172/adc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ad7172/adc.rs b/src/ad7172/adc.rs index c240f1e..b17d007 100644 --- a/src/ad7172/adc.rs +++ b/src/ad7172/adc.rs @@ -78,7 +78,7 @@ impl, NSS: OutputPin, E: fmt::Debug> Adc data.set_refbuf_neg(true); data.set_ainbuf_pos(true); data.set_ainbuf_neg(true); - data.set_ref_sel(RefSource::Internal); + data.set_ref_sel(RefSource::External); })?; self.update_reg(®s::FiltCon { index }, |data| { data.set_enh_filt_en(true);