From 0ced30236e97a6fce9a5d0d1b32e020d54269508 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Fri, 3 Mar 2017 16:00:35 +0100 Subject: [PATCH] Display alias adressing in graph. --- tool/CommandGraph.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tool/CommandGraph.cpp b/tool/CommandGraph.cpp index 6b407834..18cd0cd7 100644 --- a/tool/CommandGraph.cpp +++ b/tool/CommandGraph.cpp @@ -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;