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 bb4e3fa commit 83a7478Copy full SHA for 83a7478
rust-app/zephyr/src/device.rs
@@ -22,7 +22,7 @@ macro_rules! trait_impl {
22
// All devices are static in Zephyr, so static lifetime
23
// Option<&T> is guaranteed to have the null pointer optimization, so we can cast
24
// https://doc.rust-lang.org/nomicon/ffi.html#the-nullable-pointer-optimization
25
- core::mem::transmute(zephyr_sys::syscalls::user::device_get_binding(
+ core::mem::transmute(zephyr_sys::syscalls::$context::device_get_binding(
26
device_name.as_ptr(),
27
))
28
}
0 commit comments