From 57531a05ff346dcb4f53a2bec706947fabed97e8 Mon Sep 17 00:00:00 2001 From: David Coles Date: Tue, 12 Nov 2024 12:55:40 -0800 Subject: [PATCH] Fix build broken by API changes `FuriThreadState` now takes a `FuriThread` pointer. --- crates/flipperzero/src/furi/thread.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/flipperzero/src/furi/thread.rs b/crates/flipperzero/src/furi/thread.rs index d4c34941..b143ddbc 100644 --- a/crates/flipperzero/src/furi/thread.rs +++ b/crates/flipperzero/src/furi/thread.rs @@ -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` at the end of this function call, // because: