diff -r b954e9d91ea5 -r 30fddfce8db6 tools/Master.cpp --- a/tools/Master.cpp Mon Jun 02 10:51:31 2008 +0000 +++ b/tools/Master.cpp Mon Jun 02 11:08:49 2008 +0000 @@ -99,6 +99,21 @@ void Master::listPdos(int slavePosition) { + if (slavePosition == -1) { + unsigned int numSlaves = slaveCount(), i; + + for (i = 0; i < numSlaves; i++) { + listSlavePdos(i, true); + } + } else { + listSlavePdos(slavePosition, false); + } +} + +/****************************************************************************/ + +void Master::listSlavePdos(uint16_t slavePosition, bool printSlave) +{ ec_ioctl_slave_t slave; ec_ioctl_sync_t sync; ec_ioctl_pdo_t pdo; @@ -107,6 +122,9 @@ getSlave(&slave, slavePosition); + if (printSlave) + cout << "=== Slave " << slavePosition << " ===" << endl; + for (i = 0; i < slave.sync_count; i++) { getSync(&sync, slavePosition, i);