Skip to content

Commit

Permalink
thread: adapt to API change of thread_measure_stack_free()
Browse files Browse the repository at this point in the history
  • Loading branch information
maribu committed May 31, 2024
1 parent ea8d7fa commit 1efb8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread/riot_c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl KernelPID {
// alter the signatures and b) it's easier to use on the Rust side with a clear type.
start: unsafe { (*thread).stack_start as _ },
size: unsafe { (*thread).stack_size as _ },
free: unsafe { riot_sys::thread_measure_stack_free((*thread).stack_start) }
free: unsafe { riot_sys::thread_measure_stack_free((*thread).stack_start, (*thread).stack_size) }
as usize,
});
}
Expand Down

0 comments on commit 1efb8a6

Please sign in to comment.