mirror of
https://gitlab.com/c3d/db48x.git
synced 2024-09-29 05:36:58 +02:00
dmcp: Make sure the tests don't block on wait_for_key
A call to `wait_for_key()` would prevent the key sync counters from being updated, and as a result, the test suite would stop. Fixes: #731 Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
parent
c75ff4a9db
commit
71a4798534
1 changed files with 2 additions and 0 deletions
|
@ -825,12 +825,14 @@ void wait_for_key_press()
|
|||
wait_for_key_release(-1);
|
||||
while (key_empty() || !key_pop())
|
||||
sys_sleep();
|
||||
keysync_done = keysync_sent;
|
||||
}
|
||||
void wait_for_key_release(int tout)
|
||||
{
|
||||
record(dmcp_notyet, "wait_for_key_release not implemented");
|
||||
while (!key_empty() && key_pop())
|
||||
sys_sleep();
|
||||
keysync_done = keysync_sent;
|
||||
}
|
||||
|
||||
int file_selection_screen(const char *title,
|
||||
|
|
Loading…
Reference in a new issue