From 3e4738276ee99673c797949748791b0929093e9d Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Wed, 24 Sep 2008 08:37:35 +0000 Subject: [PATCH] Fixed minor supported mailbox protocol display bug. --- tool/CommandSlaves.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tool/CommandSlaves.cpp b/tool/CommandSlaves.cpp index 8a12dc78..39261f5d 100644 --- a/tool/CommandSlaves.cpp +++ b/tool/CommandSlaves.cpp @@ -189,8 +189,6 @@ void CommandSlaves::showSlaves( ) { SlaveList::const_iterator si; - list protoList; - list::const_iterator protoIter; for (si = slaves.begin(); si != slaves.end(); si++) { cout << "=== Slave " << dec << si->position << " ===" << endl; @@ -213,6 +211,9 @@ void CommandSlaves::showSlaves( << setw(8) << si->serial_number << endl; if (si->mailbox_protocols) { + list protoList; + list::const_iterator protoIter; + cout << "Mailboxes:" << endl << " RX: 0x" << hex << setw(4) << si->rx_mailbox_offset << "/"