mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 09:59:03 +02:00
main: allow users board cable to be override
This commit is contained in:
+7
-2
@@ -103,8 +103,13 @@ int main(int argc, char **argv)
|
||||
if (t == cable_list.end()) {
|
||||
args.cable = "-";
|
||||
cout << "Board " << args.board << " has not default cable" << endl;
|
||||
} else
|
||||
args.cable = (*t).first;
|
||||
} else {
|
||||
if (args.cable[0] == '-') { // no use selection
|
||||
args.cable = (*t).first; // use board default cable
|
||||
} else {
|
||||
cout << "Board default cable overridden with " << args.cable << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (args.cable[0] == '-') { /* if no board and no cable */
|
||||
|
||||
Reference in New Issue
Block a user