From 51085d175e07f8e55b8a0310076d5c17d7eb4b18 Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Tue, 26 Jan 2021 12:23:17 +0100 Subject: [PATCH] Removing dead-code allowance --- src/hardware/adc.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/hardware/adc.rs b/src/hardware/adc.rs index d0d7d4f..188e436 100644 --- a/src/hardware/adc.rs +++ b/src/hardware/adc.rs @@ -328,7 +328,6 @@ macro_rules! adc_input { } /// Enable the ADC DMA transfer sequence. - #[allow(dead_code)] pub fn start(&mut self) { self.transfer.start(|spi| { spi.enable_dma_rx(); @@ -346,7 +345,6 @@ macro_rules! adc_input { /// /// # Returns /// A reference to the underlying buffer that has been filled with ADC samples. - #[allow(dead_code)] pub fn acquire_buffer(&mut self) -> &[u16; SAMPLE_BUFFER_SIZE] { // Wait for the transfer to fully complete before continuing. Note: If a device // hangs up, check that this conditional is passing correctly, as there is no