-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See https://sourceforge.net/p/lirc/tickets/327/ Signed-off-by: Matthias Reichl <hias@horus.com>
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
packages/sysutils/lirc/patches/lirc-0001-fix-zotac-poll.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 79e2494e4880d0446bf837c8bbca0b01baac4ed4 Mon Sep 17 00:00:00 2001 | ||
From: Matthias Reichl <hias@horus.com> | ||
Date: Wed, 8 Apr 2020 11:27:11 +0200 | ||
Subject: [PATCH] plugins/zotac: fix poll timeout | ||
|
||
poll requires a negative timeout value for infinite waits. | ||
See https://sourceforge.net/p/lirc/tickets/327/ | ||
|
||
Signed-off-by: Matthias Reichl <hias@horus.com> | ||
--- | ||
plugins/zotac.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/plugins/zotac.c b/plugins/zotac.c | ||
index ac528c67..4a66acf5 100644 | ||
--- a/plugins/zotac.c | ||
+++ b/plugins/zotac.c | ||
@@ -352,7 +352,7 @@ static void* zotac_repeat(void* arg) | ||
if (pressed) | ||
sel = curl_poll(&pfd, 1, delay_ms); | ||
else | ||
- sel = curl_poll(&pfd, 1, 0); | ||
+ sel = curl_poll(&pfd, 1, -1); | ||
switch (sel) { | ||
case 1: | ||
// Data ready in device's file | ||
-- | ||
2.20.1 | ||
|