Fixed minor supported mailbox protocol display bug.

This commit is contained in:
Florian Pose 2008-09-24 08:37:35 +00:00
parent 86956a05c8
commit 3e4738276e
1 changed files with 3 additions and 2 deletions

View File

@ -189,8 +189,6 @@ void CommandSlaves::showSlaves(
)
{
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 @@ void CommandSlaves::showSlaves(
<< 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 << "/"