mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
eventlircd: use upstream to support -D_TIME_BITS=64 for 64-bit time
This commit is contained in:
parent
67dac15b15
commit
4495fc9eee
@ -1,9 +1,10 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="eventlircd"
|
||||
PKG_VERSION="3b753e91ae8c28dc34dd017a354d72b3c0715309"
|
||||
PKG_SHA256="4eca52d0570fa568b3296a2c9bc2af252423e25c1a67654bd79680fc5a93092a"
|
||||
PKG_VERSION="fd511a9cc7de6af4517604fdc2b3f0f5b64c2a81"
|
||||
PKG_SHA256="4c7a93d31845085272e497611159910af69e37a0f70925f36880ba40f4693e23"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/LibreELEC/eventlircd"
|
||||
PKG_URL="https://github.com/LibreELEC/eventlircd/archive/${PKG_VERSION}.tar.gz"
|
||||
|
@ -1,23 +0,0 @@
|
||||
--- a/src/input.c 2018-01-23 17:39:35.000000000 +0000
|
||||
+++ b/src/input.c 2022-07-19 13:44:12.924701772 +0000
|
||||
@@ -1100,8 +1100,8 @@
|
||||
if (device->repeat_filter == true)
|
||||
{
|
||||
if (evkey_type[device->current.event_out.code] == EVENTLIRCD_EVKEY_TYPE_KEY) {
|
||||
- time_delta = 1000000 * (device->current.event_out.time.tv_sec - previous->event_out.time.tv_sec ) +
|
||||
- (device->current.event_out.time.tv_usec - previous->event_out.time.tv_usec);
|
||||
+ time_delta = 1000000 * (device->current.event_out.input_event_sec - previous->event_out.input_event_sec ) +
|
||||
+ (device->current.event_out.input_event_usec - previous->event_out.input_event_usec);
|
||||
if (((previous->repeat_count == 0) && (time_delta < 900000)) ||
|
||||
((previous->repeat_count == 1) && (time_delta < 500000)) ||
|
||||
((previous->repeat_count == 2) && (time_delta < 300000)) ||
|
||||
@@ -1116,7 +1116,8 @@
|
||||
}
|
||||
}
|
||||
previous->repeat_count++;
|
||||
- previous->event_out.time = device->current.event_out.time;
|
||||
+ previous->event_out.input_event_sec = device->current.event_out.input_event_sec;
|
||||
+ previous->event_out.input_event_usec = device->current.event_out.input_event_usec;
|
||||
device->current.repeat_count = previous->repeat_count;
|
||||
break;
|
||||
/*
|
Loading…
x
Reference in New Issue
Block a user