Skip to content

Commit 83a7478

Browse files
committed
zephyr: device: use correct context parameter
1 parent bb4e3fa commit 83a7478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust-app/zephyr/src/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ macro_rules! trait_impl {
2222
// All devices are static in Zephyr, so static lifetime
2323
// Option<&T> is guaranteed to have the null pointer optimization, so we can cast
2424
// https://doc.rust-lang.org/nomicon/ffi.html#the-nullable-pointer-optimization
25-
core::mem::transmute(zephyr_sys::syscalls::user::device_get_binding(
25+
core::mem::transmute(zephyr_sys::syscalls::$context::device_get_binding(
2626
device_name.as_ptr(),
2727
))
2828
}

0 commit comments

Comments
 (0)