# HG changeset patch # User Florian Pose # Date 1222245455 0 # Node ID 15e8768b304fb653f18722ce7c1b382410db9925 # Parent aa030fb1e9808694b94718f09db70e38b6acec1a Fixed minor supported mailbox protocol display bug. diff -r aa030fb1e980 -r 15e8768b304f 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 protoList; - list::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 protoList; + list::const_iterator protoIter; + cout << "Mailboxes:" << endl << " RX: 0x" << hex << setw(4) << si->rx_mailbox_offset << "/"