mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-22 18:06:40 +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
1 changed files with 4 additions and 1 deletions
|
@ -81,5 +81,8 @@ u8 btn_wait_timeout(u32 time_ms, u8 mask)
|
|||
};
|
||||
|
||||
// Timed out.
|
||||
return 0;
|
||||
if (!single_button)
|
||||
return (res & mask);
|
||||
else
|
||||
return 0; // Return no button press if single button requested.
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue