diff --git a/src/NimBLEScan.cpp b/src/NimBLEScan.cpp index 8abaf01..16b46cf 100644 --- a/src/NimBLEScan.cpp +++ b/src/NimBLEScan.cpp @@ -478,9 +478,11 @@ void NimBLEScan::clearResults() { * @brief Dump the scan results to the log. */ void NimBLEScanResults::dump() const { +#if CONFIG_NIMBLE_CPP_LOG_LEVEL >=3 for (const auto& dev : m_deviceVec) { NIMBLE_LOGI(LOG_TAG, "- %s", dev->toString().c_str()); } +#endif } // dump /**