Display alias adressing in graph.

This commit is contained in:
Florian Pose
2017-03-03 16:00:35 +01:00
parent b96ac30333
commit 0ced30236e

View File

@@ -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;