fix modeswitch EOL parsing
This commit is contained in:
Binary file not shown.
@@ -29,6 +29,7 @@ int main(int argc, char* argv[])
|
||||
file = fopen("devicepath.dat", "r");
|
||||
while ( fgets(path,256,file) != NULL )
|
||||
{
|
||||
path[strcspn(path, "\r\n")] = 0;
|
||||
hidHandle = CreateFile(path, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
|
||||
if ( hidHandle != INVALID_HANDLE_VALUE )
|
||||
break;
|
||||
|
||||
Vendored
+1
-1
@@ -36,7 +36,7 @@ The autohotkey version finds the path automatically based on VID=2341 and PID=00
|
||||
|
||||
The included devicepath.dat should work with both Due and Leonardo versions out of the box, but in case you get the message ``Couldn't open device. Make sure devicepath.dat contains the correct path.`` and you are sure the device is plugged in, you can either go into windows device manager and look for the device path in the advanced properties of your arduino device, or the easiest way is to look at the value inside spicetools or bemanitools configuration files.
|
||||
|
||||
The devicepath.dat should contain a line with only the device path, and unix style end of line.
|
||||
devicepath.dat file should contain the device path on its own on a single line. Multiple paths on multiple lines should work too in which case it will open the first valid path it finds.
|
||||
|
||||
### spicetools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user