diff --git a/src/thread/riot_c.rs b/src/thread/riot_c.rs index 0d11647..5c3772b 100644 --- a/src/thread/riot_c.rs +++ b/src/thread/riot_c.rs @@ -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, }); }