From 9e91058ed926841d3152f888b8b87633b8ccc4f8 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 27 Aug 2024 20:36:50 +0200 Subject: Add elksmart-comm for transceiving infrared codes The receive functionality is quite unstable, however useful enough for something that is officially unsupported. The gadget is picky about cables, but it has ridiculous reach when it works. --- ddc-ci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ddc-ci.c') diff --git a/ddc-ci.c b/ddc-ci.c index c9148dc..7701152 100644 --- a/ddc-ci.c +++ b/ddc-ci.c @@ -46,7 +46,7 @@ log_message_custom (void *user_data, const char *quote, const char *fmt, static void wait_ms (long ms) { - struct timespec ts = { 0, ms * 1000 * 1000 }; + struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 }; nanosleep (&ts, NULL); } -- cgit v1.2.3-54-g00ecf