42 lines
1.2 KiB
Diff
42 lines
1.2 KiB
Diff
From 76ec64178f6cc8d6d737408ee23f36f5a0ed6c43 Mon Sep 17 00:00:00 2001
|
|
From: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Date: Tue, 18 Mar 2014 10:56:57 +1000
|
|
Subject: [PATCH 12/14] tools: re-enable wait-for-tablet
|
|
|
|
We need this to actually time out, otherwise we can't tell whether we have the
|
|
wrong baud rate set. That's fine for a debugger where a human will terminate,
|
|
but not for the upcoming inputattach clone.fine for a debugger where a human
|
|
will terminate, but not for the upcoming inputattach clone.fine for a debugger
|
|
where a human will terminate, but not for the upcoming inputattach clone.fine
|
|
for a debugger where a human will terminate, but not for the upcoming
|
|
inputattach clone.
|
|
|
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
---
|
|
tools/tools-shared.c | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
diff --git a/tools/tools-shared.c b/tools/tools-shared.c
|
|
index 4d22cdf..2537211 100644
|
|
--- a/tools/tools-shared.c
|
|
+++ b/tools/tools-shared.c
|
|
@@ -164,7 +164,6 @@ int start_tablet(int fd)
|
|
|
|
int wait_for_tablet(int fd)
|
|
{
|
|
-#if 0
|
|
struct pollfd pfd = { fd, POLLIN, 0 };
|
|
int rc;
|
|
|
|
@@ -179,7 +178,6 @@ int wait_for_tablet(int fd)
|
|
} else if (pfd.revents & POLLIN)
|
|
TRACE("data available.\n");
|
|
|
|
-#endif
|
|
return 0;
|
|
}
|
|
|
|
--
|
|
1.8.5.3
|
|
|