mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-05 19:39:50 +08:00
Display alias adressing in graph.
This commit is contained in:
@@ -120,9 +120,18 @@ void CommandGraph::execute(const StringVector &args)
|
||||
}
|
||||
cout << endl;
|
||||
|
||||
uint16_t alias = 0x0000;
|
||||
uint16_t pos = 0;
|
||||
|
||||
for (si = slaves.begin(); si != slaves.end(); si++) {
|
||||
if (si->alias) {
|
||||
alias = si->alias;
|
||||
pos = 0;
|
||||
}
|
||||
|
||||
cout << " slave" << si->position << " [shape=\"box\""
|
||||
<< ",label=\"" << si->position;
|
||||
<< ",label=\"" << si->position
|
||||
<< " / " << alias << ":" << pos;
|
||||
if (string(si->order).size())
|
||||
cout << "\\n" << si->order;
|
||||
if (si->dc_supported) {
|
||||
@@ -188,6 +197,7 @@ void CommandGraph::execute(const StringVector &args)
|
||||
}
|
||||
|
||||
cout << endl;
|
||||
pos++;
|
||||
}
|
||||
|
||||
cout << "}" << endl;
|
||||
|
||||
Reference in New Issue
Block a user