diff --git a/firmware/src/ad7172.rs b/firmware/src/ad7172.rs index dc0a8ae..35acfdc 100644 --- a/firmware/src/ad7172.rs +++ b/firmware/src/ad7172.rs @@ -43,7 +43,8 @@ pub struct Adc, NSS: OutputPin> { } impl, NSS: OutputPin> Adc { - pub fn new(spi: SPI, nss: NSS) -> Result { + pub fn new(spi: SPI, mut nss: NSS) -> Result { + let _ = nss.set_high(); let mut adc = Adc { spi, nss}; let mut buf = [0, 0, 0];