Fixed minor supported mailbox protocol display bug.
authorFlorian Pose <fp@igh-essen.com>
Wed, 24 Sep 2008 08:37:35 +0000
changeset 1220 15e8768b304f
parent 1219 aa030fb1e980
child 1221 18c37827b40e
Fixed minor supported mailbox protocol display bug.
tool/CommandSlaves.cpp
--- a/tool/CommandSlaves.cpp	Wed Sep 24 08:32:55 2008 +0000
+++ b/tool/CommandSlaves.cpp	Wed Sep 24 08:37:35 2008 +0000
@@ -189,8 +189,6 @@
         )
 {
     SlaveList::const_iterator si;
-    list<string> protoList;
-    list<string>::const_iterator protoIter;
 
     for (si = slaves.begin(); si != slaves.end(); si++) {
         cout << "=== Slave " << dec << si->position << " ===" << endl;
@@ -213,6 +211,9 @@
             << setw(8) << si->serial_number << endl;
 
         if (si->mailbox_protocols) {
+            list<string> protoList;
+            list<string>::const_iterator protoIter;
+
             cout << "Mailboxes:" << endl
                 << "  RX: 0x"
                 << hex << setw(4) << si->rx_mailbox_offset << "/"