We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3386f9 commit c68d004Copy full SHA for c68d004
crates/flipperzero/src/furi/thread.rs
@@ -317,7 +317,7 @@ pub fn wait_all_flags(
317
clear: bool,
318
timeout: Duration,
319
) -> Result<u32, sys::furi::Status> {
320
- let options = FuriFlag_FuriFlagWaitAll | (if !clear { FuriFlag_FuriFlagNoClear } else { 0 });
+ let options = FuriFlag_FuriFlagWaitAll | (if clear { 0 } else { FuriFlag_FuriFlagNoClear });
321
let result = unsafe { sys::furi_thread_flags_wait(flags, options, timeout.0) };
322
323
if result & sys::FuriFlag_FuriFlagError != 0 {
0 commit comments