diff --git a/libraries/BluetoothSerial/src/BTScanResultsSet.cpp b/libraries/BluetoothSerial/src/BTScanResultsSet.cpp index 79d23e463cd..7134e970ec1 100644 --- a/libraries/BluetoothSerial/src/BTScanResultsSet.cpp +++ b/libraries/BluetoothSerial/src/BTScanResultsSet.cpp @@ -64,9 +64,6 @@ int BTScanResultsSet::getCount() { * @return The device at the specified index. */ BTAdvertisedDevice* BTScanResultsSet::getDevice(uint32_t i) { - if (i < 0) - return nullptr; - uint32_t x = 0; BTAdvertisedDeviceSet* pDev = &m_vectorAdvertisedDevices.begin()->second; for (auto it = m_vectorAdvertisedDevices.begin(); it != m_vectorAdvertisedDevices.end(); it++) { @@ -92,4 +89,4 @@ bool BTScanResultsSet::add(BTAdvertisedDeviceSet advertisedDevice, bool unique) return false; } -#endif \ No newline at end of file +#endif