btn: Fix bootwait=0 for real

This commit is contained in:
CTCaer 2019-12-12 00:15:08 +02:00
parent a664118fc7
commit 8ff01301cb

View file

@ -81,7 +81,7 @@ u8 btn_wait_timeout(u32 time_ms, u8 mask)
};
// Timed out.
if (!single_button)
if (!single_button || !time_ms)
return (res & mask);
else
return 0; // Return no button press if single button requested.