From 38b1359c409e6bf285242561838d33e8c3c81927 Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Wed, 14 Jul 2021 14:35:03 -0400 Subject: [PATCH] Remove pub and cfg's, since they will be implied by the existance of TxDma in theory. --- embassy-stm32/src/usart/v3.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/embassy-stm32/src/usart/v3.rs b/embassy-stm32/src/usart/v3.rs index 6c9696c7..3029bf6e 100644 --- a/embassy-stm32/src/usart/v3.rs +++ b/embassy-stm32/src/usart/v3.rs @@ -69,8 +69,7 @@ impl<'d, T: Instance, TxDma, RxDma> Uart<'d, T, TxDma, RxDma> { } } - #[cfg(any(dma, dmamux))] - pub async fn write_dma(&mut self, buffer: &[u8]) -> Result<(), Error> + async fn write_dma(&mut self, buffer: &[u8]) -> Result<(), Error> where TxDma: crate::usart::TxDma, {