Add hid_exit() to test.c when handle not found (#471)

This commit is contained in:
endolith
2022-10-21 10:31:48 -04:00
committed by GitHub
parent 1312cc3bf5
commit bb792a1f7e
2 changed files with 2 additions and 2 deletions

View File

@@ -119,8 +119,7 @@ int main(int argc, char* argv[])
handle = hid_open(0x4d8, 0x3f, NULL);
if (!handle) {
printf("Unable to open device\n");
hid_exit()
hid_exit();
return 1;
}

View File

@@ -118,6 +118,7 @@ int main(int argc, char* argv[])
handle = hid_open(0x4d8, 0x3f, NULL);
if (!handle) {
printf("unable to open device\n");
hid_exit();
return 1;
}