diff -r cc133310d6fd -r ae4c73f4c56d tool/CommandSlaves.cpp --- a/tool/CommandSlaves.cpp Wed Aug 27 15:52:24 2008 +0000 +++ b/tool/CommandSlaves.cpp Wed Sep 24 08:48:23 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 << "/"