Update README.md (#324)

Clean/correct includes in the README example.
This commit is contained in:
Ihor Dutchak
2021-08-23 20:55:51 +03:00
committed by GitHub
parent f75adc3c91
commit 7c0dc53507
+5 -7
View File
@@ -83,15 +83,13 @@ Generic HID sample looks like this (with error checking removed for
simplicity):
**Warning: Only run the code you understand, and only when it conforms to the
device spec. Writing data at random to your HID devices can break them.**
device spec. Writing data (`hid_write`) at random to your HID devices can break them.**
```c
#ifdef WIN32
#include <windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include "hidapi.h"
#include <stdio.h> // printf
#include <wchar.h> // wprintf
#include <hidapi.h>
#define MAX_STR 255