# HG changeset patch # User Florian Pose # Date 1217247110 0 # Node ID 25cc77cf39934ea6ed455e7e551fc66f4f9e86b2 # Parent f65164fa4a58efb849be6bbd79e74e7fdbbfeded Improved alias/position addressing in case od duplicated aliases. diff -r f65164fa4a58 -r 25cc77cf3993 TODO --- a/TODO Mon Jul 28 11:43:08 2008 +0000 +++ b/TODO Mon Jul 28 12:11:50 2008 +0000 @@ -21,7 +21,6 @@ - Add a -n (numeric) switch. - Check for options, remove global variables. - Remove MasterDevice::slaveCount(). - - Alias index? - Add 'etherlab version'. Future issues: diff -r f65164fa4a58 -r 25cc77cf3993 tool/Command.cpp --- a/tool/Command.cpp Mon Jul 28 11:43:08 2008 +0000 +++ b/tool/Command.cpp Mon Jul 28 12:11:50 2008 +0000 @@ -143,12 +143,11 @@ aliasIndex = 0; for (i = 0; i < numSlaves; i++) { m.getSlave(&slave, i); - if (slave.alias) { // FIXME 'lock' first alias + if (slave.alias && slave.alias == (uint16_t) alias) { lastAlias = slave.alias; aliasIndex = 0; } - if (lastAlias == (uint16_t) alias - && aliasIndex == (unsigned int) position) { + if (lastAlias && aliasIndex == (unsigned int) position) { list.push_back(slave); } aliasIndex++;