diff --git a/examples/receive.rs b/examples/receive.rs index 322355c..6fb52e5 100644 --- a/examples/receive.rs +++ b/examples/receive.rs @@ -1,6 +1,6 @@ use anyhow::Result; use linux_embedded_hal::spidev::{SpiModeFlags, SpidevOptions}; -use linux_embedded_hal::{SpidevDevice, SysfsPin}; +use linux_embedded_hal::SpidevDevice; use rfm69::Rfm69; use utilities::rfm_error; @@ -30,8 +30,5 @@ fn main() -> Result<()> { println!("Value at {} = {}", index, val) } - // Un-export the CS pin - SysfsPin::new(25).unexport()?; - Ok(()) } diff --git a/examples/send.rs b/examples/send.rs index bf884b5..e620818 100644 --- a/examples/send.rs +++ b/examples/send.rs @@ -1,6 +1,6 @@ use anyhow::Result; use linux_embedded_hal::spidev::{SpiModeFlags, SpidevOptions}; -use linux_embedded_hal::{SpidevDevice, SysfsPin}; +use linux_embedded_hal::SpidevDevice; use rfm69::Rfm69; use utilities::rfm_error; @@ -26,8 +26,5 @@ fn main() -> Result<()> { let buffer = Vec::from(b"Hello, world!".as_ref()); rfm_error!(rfm.send(&buffer))?; - // Un-export the CS pin - SysfsPin::new(25).unexport()?; - Ok(()) }