diff --git a/source/RobotAPI/libraries/ArmarXEtherCAT/EtherCAT.cpp b/source/RobotAPI/libraries/ArmarXEtherCAT/EtherCAT.cpp index ac5fe6828a68ed2cb600a0bbef9d8cb2ac7df674..bb239e656673d84e2849ae1485de41f744889ccf 100644 --- a/source/RobotAPI/libraries/ArmarXEtherCAT/EtherCAT.cpp +++ b/source/RobotAPI/libraries/ArmarXEtherCAT/EtherCAT.cpp @@ -785,7 +785,7 @@ void EtherCAT::readErrorCounters() //not used, only confusing info... //uint16_t configAddr = ecx_APRDw(ecx_context.port, ADPh, ECT_REG_STADR, 100000); - for (int i = 0; i < 4; i++) + for (int i = 0; i < 2; i++) { // Error handling taken from @@ -809,14 +809,14 @@ void EtherCAT::readErrorCounters() } else if (ret1 > 0 && ret2 > 0 && ret3 > 0 && ret4 > 0) { - ARMARX_INFO << "no errors for Slavenumber " << slaveIndex << " port:" << i << "\tname: " << name; + ARMARX_DEBUG << "no errors for Slavenumber " << slaveIndex << " port:" << i << "\tname: " << name; } } IceUtil::Time elapsed = (IceUtil::Time::now(IceUtil::Time::Monotonic) - start); if (elapsed.toMilliSeconds() > 10) { updatePDO(); - ARMARX_INFO << "Updated BUS to prevent timeout, " << elapsed << " has passed since last bus update."; + ARMARX_DEBUG << "Updated BUS to prevent timeout, " << elapsed << " has passed since last bus update."; start = IceUtil::Time::now(IceUtil::Time::Monotonic); } }