mirror of
https://github.com/CTCaer/hekate.git
synced 2024-12-25 15:17:19 +00:00
util: Always return result if not a single press req
This also fixes issues with 0 time out.
This commit is contained in:
parent
e4f7928513
commit
ae283aef59
@ -81,5 +81,8 @@ u8 btn_wait_timeout(u32 time_ms, u8 mask)
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Timed out.
|
// Timed out.
|
||||||
return 0;
|
if (!single_button)
|
||||||
|
return (res & mask);
|
||||||
|
else
|
||||||
|
return 0; // Return no button press if single button requested.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user