main: allow users board cable to be override
This commit is contained in:
parent
2170a2af86
commit
f22b25428d
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue