mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-31 18:26:14 +02:00
pass cable_t instead of mpsse_bit_config
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user