Skip to content

Commit

Permalink
Fix build broken by API changes
Browse files Browse the repository at this point in the history
`FuriThreadState` now takes a `FuriThread` pointer.
  • Loading branch information
dcoles committed Nov 12, 2024
1 parent 4e57078 commit 57531a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/flipperzero/src/furi/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ impl Builder {
let callback: sys::FuriThreadCallback = Some(run_thread_body);
let context = Box::into_raw(thread_body);

unsafe extern "C" fn run_state_callback(state: sys::FuriThreadState, context: *mut c_void) {
unsafe extern "C" fn run_state_callback(
_thread: *mut sys::FuriThread,
state: sys::FuriThreadState,
context: *mut c_void,
) {
if state == sys::FuriThreadState_FuriThreadStateStopped {
// SAFETY: We can drop the `Arc<Thread>` at the end of this function call,
// because:
Expand Down

0 comments on commit 57531a0

Please sign in to comment.