GNU/Linux: Fix AckBtn driver.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2021-02-17 09:53:49 +09:00
parent b3c35aebdd
commit 8c48b0d7d3

View File

@@ -79,8 +79,6 @@ user_interaction (void *arg)
pollfds[1].fd = event_fd;
pollfds[1].events = POLLIN;
fputs ("User interaction for AckBtn started.\n", stdout);
while (1)
{
unsigned int acked_or_timeout = 0;
@@ -91,6 +89,8 @@ user_interaction (void *arg)
pthread_cond_wait (&cond, &mutex);
pthread_mutex_unlock (&mutex);
fputs ("User interaction for AckBtn started.\n", stdout);
/* Consume all input if any. */
while (1)
{