diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-08-10 10:20:59 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-08-10 10:20:59 +0000 |
commit | 35e9349ffc53950c4b78fba9537a50cdb6e5fd7a (patch) | |
tree | 3c1ba96949354717d9c943e4b95da275d78fc75b /hidd | |
parent | 876bfd3a0da64aaa188717aefed829fc2ec6c91b (diff) |
Change default poll() timeout
Diffstat (limited to 'hidd')
-rw-r--r-- | hidd/fakehid.c | 2 | ||||
-rw-r--r-- | hidd/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hidd/fakehid.c b/hidd/fakehid.c index 2699d3f5..91a62fb3 100644 --- a/hidd/fakehid.c +++ b/hidd/fakehid.c @@ -318,7 +318,7 @@ int epox_presenter(const bdaddr_t *src, const bdaddr_t *dst, uint8_t channel) while (!__io_canceled) { p.revents = 0; - if (poll(&p, 1, 100) < 1) + if (poll(&p, 1, 500) < 1) continue; len = read(sk, buf, sizeof(buf)); diff --git a/hidd/main.c b/hidd/main.c index 4ececd5a..77f80c3f 100644 --- a/hidd/main.c +++ b/hidd/main.c @@ -340,7 +340,7 @@ static void run_server(int ctl, int csk, int isk, uint8_t subclass, int nosdp, i p[0].revents = 0; p[1].revents = 0; - err = poll(p, 2, 100); + err = poll(p, 2, 500); if (err <= 0) continue; |