We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 829d6d1 commit b8e7f39Copy full SHA for b8e7f39
src/lib.rs
@@ -24,7 +24,11 @@
24
//! # struct DummyDelayer;
25
//! # impl embedded_hal::blocking::spi::Transfer<u8> for DummySpi {
26
//! # type Error = ();
27
-//! # fn transfer<'w>(&mut self, data: &'w mut [u8]) -> Result<&'w [u8], ()> { Ok(&[0]) }
+//! # fn transfer<'w>(&mut self, data: &'w mut [u8]) -> Result<&'w [u8], Self::Error> { Ok(&[0]) }
28
+//! # }
29
+//! # impl embedded_hal::blocking::spi::Write<u8> for DummySpi {
30
+//! # type Error = ();
31
+//! # fn write(&mut self, data: &[u8]) -> Result<(), Self::Error> { Ok(()) }
32
//! # }
33
//! # impl embedded_hal::digital::v2::OutputPin for DummyCsPin {
34
0 commit comments