Skip to content

Commit e8a1d6d

Browse files
credmontylerwhall
authored andcommitted
Apply suggestions from code review
1 parent c4ab63e commit e8a1d6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust-app/zephyr/src/uart.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ macro_rules! trait_impl {
6363
fn uart_config_get(device: &Device) -> Result<UartConfig, u32> {
6464
let mut config = UartConfig::default();
6565
unsafe {
66-
zephyr_sys::syscalls::user::uart_config_get(
66+
zephyr_sys::syscalls::$context::uart_config_get(
6767
device as *const _ as *mut _,
6868
&mut config.0,
6969
)
@@ -75,7 +75,7 @@ macro_rules! trait_impl {
7575
#[inline(always)]
7676
fn uart_configure(device: &Device, config: &UartConfig) -> Result<(), u32> {
7777
unsafe {
78-
zephyr_sys::syscalls::user::uart_configure(
78+
zephyr_sys::syscalls::$context::uart_configure(
7979
device as *const _ as *mut _,
8080
&config.0,
8181
)

0 commit comments

Comments
 (0)