Actually use the device argument
authorgirst <girst@users.noreply.github.com>
Mon, 12 Sep 2016 17:38:33 +0000 (19:38 +0200)
committerGitHub <noreply@github.com>
Mon, 12 Sep 2016 17:38:33 +0000 (19:38 +0200)
see https://github.com/girst/hardpass-sendHID/pull/2/files

send_hid/main.c

index 404d4c2abe0cfa88f188e929be2f4d70810dc3be..093b977eb80c0fbe919fc506e4541e007d18b58e 100755 (executable)
@@ -55,7 +55,7 @@ int main (int argc, char** argv) {
                        WINDOWS, "Windows: Alt+[Numpad]");
                return ERR_ARGCOUNT;
        }
                        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++) {
        char in_string[TEXT_LEN];
        fgets(in_string, TEXT_LEN, stdin);
        for (int i = 0; i < strlen (in_string); i++) {
Imprint / Impressum