mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
- fix sending multiple scancodes with configurable gap - fix sending rc6 scancodes on 32bit platforms Patches are backported from v4l-utils master branch Signed-off-by: Matthias Reichl <hias@horus.com>
30 lines
827 B
Diff
30 lines
827 B
Diff
From 9a20a75e132e26f6c49971f9818c6fad053875f2 Mon Sep 17 00:00:00 2001
|
|
From: Sean Young <sean@mess.org>
|
|
Date: Wed, 2 Aug 2017 11:47:23 -0400
|
|
Subject: [PATCH] ir-ctl: "ir-ctl -S rc6_mce:0x800f0410" does not work on
|
|
32-bit
|
|
|
|
0x800f0410 does not fit in 32-bit signed long.
|
|
|
|
Signed-off-by: Sean Young <sean@mess.org>
|
|
---
|
|
utils/ir-ctl/ir-ctl.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/utils/ir-ctl/ir-ctl.c b/utils/ir-ctl/ir-ctl.c
|
|
index 3d66063af..562a05da3 100644
|
|
--- a/utils/ir-ctl/ir-ctl.c
|
|
+++ b/utils/ir-ctl/ir-ctl.c
|
|
@@ -152,7 +152,7 @@ static int strtoint(const char *p, const char *unit)
|
|
static bool strtoscancode(const char *p, unsigned *ret)
|
|
{
|
|
char *end;
|
|
- long arg = strtol(p, &end, 0);
|
|
+ long long arg = strtoll(p, &end, 0);
|
|
if (end == NULL || end[0] != 0)
|
|
return false;
|
|
|
|
--
|
|
2.11.0
|
|
|