mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-31 02:07:14 +02:00
cmsisDAP: allows to select interface number
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user