cmsisDAP: allows to select interface number

This commit is contained in:
Gwenhael Goavec-Merou
2022-08-29 21:00:32 +02:00
parent 61e959f93d
commit 27309d4931
6 changed files with 34 additions and 11 deletions
+4 -1
View File
@@ -45,7 +45,10 @@ FTDIpp_MPSSE::FTDIpp_MPSSE(const mpsse_bit_config &cable, const string &dev,
} else {
_vid = cable.vid;
_pid = cable.pid;
_index = cable.index;
if (cable.index == -1)
_index = 0;
else
_index = cable.index;
}
open_device(serial, 115200);