Skip to content

Commit bb792a1

Browse files
authored
Add hid_exit() to test.c when handle not found (signal11#471)
1 parent 1312cc3 commit bb792a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ int main(int argc, char* argv[])
119119
handle = hid_open(0x4d8, 0x3f, NULL);
120120
if (!handle) {
121121
printf("Unable to open device\n");
122-
123-
hid_exit()
122+
hid_exit();
124123
return 1;
125124
}
126125

hidtest/test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ int main(int argc, char* argv[])
118118
handle = hid_open(0x4d8, 0x3f, NULL);
119119
if (!handle) {
120120
printf("unable to open device\n");
121+
hid_exit();
121122
return 1;
122123
}
123124

0 commit comments

Comments
 (0)