--- /dev/null
+;
+; http://editorconfig.org/#supported-properties
+root = true ; top-most EditorConfig file
+
+[*]
+end_of_line = lf
+insert_final_newline = false
+
+; 4 space indentation
+[*.c]
+charset = latin1
+indent_style = space
+indent_size = 4
+
+[*.h]
+charset = latin1
+indent_style = space
+indent_size = 4
+
+[*.cpp]
+charset = latin1
+indent_style = space
+indent_size = 4
+
+[*.txt]
+indent_style = tab
+indent_size = 8
+end_of_line = crlf
+;insert_final_newline = false
+
+[*.bat]
+end_of_line = crlf
+indent_style = space
+indent_size = 2
//
// pa01 15-Apr-2014
// Currently finds the 1st matching device by ven,dev, product name string.
+// Two channel devices only!
// TODO:
// - Enum all matching devices, select one by ID
// - Determine the relay model (1 or 2 or more) by product string?
-// Windows build: using VC++2008 & WDK7.1
+// Build for Windows: using VC++ 2008 and WDK7.1
//~~~~~~~~~~~~~~~~~~~~~~~~
/* Prototype: V-USB example: vusb-20121206/examples/hid-data/commandline/hidtool.c
int main(int argc, char **argv)
{
- usbDevice_t *dev;
+ USBDEVHANDLE dev;
int err;
char const *arg1 = (argc >= 2) ? argv[1] : NULL;
char const *arg2 = (argc >= 3) ? argv[2] : NULL;