From f8854643de2cd7b0d52d993899651a00eab7604f Mon Sep 17 00:00:00 2001 From: Joshua Liu Date: Tue, 24 Jun 2025 17:14:41 -0400 Subject: docs: added a comment about what the magic numbers are for create_hid_handler --- streamdeck.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'streamdeck.c') diff --git a/streamdeck.c b/streamdeck.c index 5bdec87..739f5b9 100644 --- a/streamdeck.c +++ b/streamdeck.c @@ -44,6 +44,8 @@ pthread_mutex_t inflate_lock; int update_current_folder (screen* folder); int load_folder (); int load_key (); +int createreadthread(); + int init () @@ -80,6 +82,7 @@ create_hid_handler () /* * Create the device handler */ + /* These are dev id and manufacturer id for the mini */ res->handler = hid_open(0x0fd9, 0x0063, NULL); if (!res->handler) { (void) fprintf(stderr, "Could not open Streamdeck!\n"); @@ -91,7 +94,6 @@ create_hid_handler () /* * Set handler to be non-blocking */ - if (hid_set_nonblocking(res->handler, 1) < 0) { (void) fprintf(stderr, "Could not set HIDAPI handler to be non-blocking\n"); free(res); -- cgit v1.2.3