pass cable_t instead of mpsse_bit_config

This commit is contained in:
Gwenhael Goavec-Merou
2020-03-07 10:56:34 +01:00
parent f9591b89a7
commit 706219016e
3 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ void displaySupported(const struct arguments &args);
int main(int argc, char **argv)
{
FTDIpp_MPSSE::mpsse_bit_config cable;
cable_t cable;
/* command line args. */
struct arguments args = {false, false, false, 0, "", "-", "-", "-",
@@ -267,7 +267,7 @@ void displaySupported(const struct arguments &args)
t << setw(15) << left << "cable name:" << "vid:pid";
printSuccess(t.str());
for (auto b = cable_list.begin(); b != cable_list.end(); b++) {
FTDIpp_MPSSE::mpsse_bit_config c = (*b).second;
FTDIpp_MPSSE::mpsse_bit_config c = (*b).second.config;
stringstream ss;
ss << setw(15) << left << (*b).first;
ss << "0x" << hex << c.vid << ":" << c.pid;