README: add hid_close() to the code sample

This commit is contained in:
Filip Kubicz
2019-11-03 22:49:12 +01:00
committed by Filip Kubicz
parent 1750cc8373
commit 40de5a638b

View File

@@ -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();