diff --git a/src/ws281x.rs b/src/ws281x.rs index 63497d4..917f318 100644 --- a/src/ws281x.rs +++ b/src/ws281x.rs @@ -48,7 +48,9 @@ impl BufferedWs281x { impl BufferedWs281x { pub fn write(&mut self) { unsafe { - riot_sys::ws281x_prepare_transmission(crate::inline_cast_mut(&mut self.dev as *mut _)); + riot_sys::inline::ws281x_prepare_transmission(crate::inline_cast_mut( + &mut self.dev as *mut _, + )); riot_sys::ws281x_write_buffer( &mut self.dev, &self.buffer as *const _ as *const core::ffi::c_void, @@ -56,7 +58,9 @@ impl BufferedWs281x { .try_into() .expect("Buffer exceeds experssible range"), ); - riot_sys::ws281x_end_transmission(crate::inline_cast_mut(&mut self.dev as *mut _)); + riot_sys::inline::ws281x_end_transmission(crate::inline_cast_mut( + &mut self.dev as *mut _, + )); } } }