aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Oliva <[email protected]>2023-10-11 23:34:02 +0200
committerAndres Oliva <[email protected]>2023-10-11 23:34:02 +0200
commitee5ea7aa06491a2bbd523ac054604977cb0c9e33 (patch)
tree632d2ea879d9536368c98b7a5621838868853f90
parent251d004708762210a2279bee66c1e5b2dcdf93cb (diff)
cargo fmt
-rw-r--r--embassy-stm32/src/i2c/v2.rs14
1 files changed, 12 insertions, 2 deletions
diff --git a/embassy-stm32/src/i2c/v2.rs b/embassy-stm32/src/i2c/v2.rs
index 6627d7f67..093b960d8 100644
--- a/embassy-stm32/src/i2c/v2.rs
+++ b/embassy-stm32/src/i2c/v2.rs
@@ -749,7 +749,12 @@ impl<'d, T: Instance, TXDMA, RXDMA> I2c<'d, T, TXDMA, RXDMA> {
749 } 749 }
750 750
751 #[cfg(not(feature = "time"))] 751 #[cfg(not(feature = "time"))]
752 pub fn blocking_read_timeout(&mut self, address: u8, read: &mut [u8], check_timeout: impl Fn() -> Result<(), Error>) -> Result<(), Error> { 752 pub fn blocking_read_timeout(
753 &mut self,
754 address: u8,
755 read: &mut [u8],
756 check_timeout: impl Fn() -> Result<(), Error>,
757 ) -> Result<(), Error> {
753 self.read_internal(address, read, false, check_timeout) 758 self.read_internal(address, read, false, check_timeout)
754 // Automatic Stop 759 // Automatic Stop
755 } 760 }
@@ -768,7 +773,12 @@ impl<'d, T: Instance, TXDMA, RXDMA> I2c<'d, T, TXDMA, RXDMA> {
768 } 773 }
769 774
770 #[cfg(not(feature = "time"))] 775 #[cfg(not(feature = "time"))]
771 pub fn blocking_write_timeout(&mut self, address: u8, write: &[u8], check_timeout: impl Fn() -> Result<(), Error>) -> Result<(), Error> { 776 pub fn blocking_write_timeout(
777 &mut self,
778 address: u8,
779 write: &[u8],
780 check_timeout: impl Fn() -> Result<(), Error>,
781 ) -> Result<(), Error> {
772 self.write_internal(address, write, true, check_timeout) 782 self.write_internal(address, write, true, check_timeout)
773 } 783 }
774 784