Skip to content

Commit

Permalink
hidapi/windows/hid.c: fix misplaced #if 0
Browse files Browse the repository at this point in the history
VendorID && ProductID are only used by the test main(),
otherwise they are unwanted globals.
  • Loading branch information
sezero committed Sep 28, 2018
1 parent f964ce0 commit 283680f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hidapi/windows/hid.c
Expand Up @@ -913,6 +913,8 @@ HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
}


#if 0

/*#define PICPGM*/
/*#define S11*/
#define P32
Expand All @@ -932,8 +934,6 @@ HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
unsigned short ProductID = 0x0033;
#endif


#if 0
int __cdecl main(int argc, char* argv[])
{
int res;
Expand Down

0 comments on commit 283680f

Please sign in to comment.