Skip to content

Commit

Permalink
README: add hid_close() to the code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Qbicz committed Nov 5, 2019
1 parent 1750cc8 commit 40de5a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ int main(int argc, char* argv[])
for (i = 0; i < 4; i++)
printf("buf[%d]: %d\n", i, buf[i]);

// Close the device
hid_close(handle);

// Finalize the hidapi library
res = hid_exit();

Expand Down

0 comments on commit 40de5a6

Please sign in to comment.