From: girst Date: Mon, 12 Sep 2016 17:38:33 +0000 (+0200) Subject: Actually use the device argument X-Git-Url: https://git.gir.st/hardpass.git/commitdiff_plain/d6e251a2438abd38ae6e978849a629b2a76e0a18?ds=sidebyside Actually use the device argument see https://github.com/girst/hardpass-sendHID/pull/2/files --- diff --git a/send_hid/main.c b/send_hid/main.c index 404d4c2..093b977 100755 --- a/send_hid/main.c +++ b/send_hid/main.c @@ -55,7 +55,7 @@ int main (int argc, char** argv) { WINDOWS, "Windows: Alt+[Numpad]"); return ERR_ARGCOUNT; } - FILE* hid_dev = fopen ("/dev/hidg0", "w"); + FILE* hid_dev = fopen (argv[P_DEV], "w"); char in_string[TEXT_LEN]; fgets(in_string, TEXT_LEN, stdin); for (int i = 0; i < strlen (in_string); i++) {