void DW1000RangingClass::checkForInactiveDevices(){ for(int i=0; i<_networkDevicesNumber; i++){ if(_networkDevices[i].isInactive()){ Serial.print("delete inactive device: "); Serial.println(_networkDevices[i].getShortAddress(), HEX); //we need to delete the device from the array: removeNetworkDevices(i); } } }
void DW1000RangingClass::checkForInactiveDevices() { for(int i = 0; i < _networkDevicesNumber; i++) { if(_networkDevices[i].isInactive()) { if(_handleInactiveDevice != 0) { (*_handleInactiveDevice)(&_networkDevices[i]); } //we need to delete the device from the array: removeNetworkDevices(i); } } }