Skip to content

Commit f4746f2

Browse files
mazgchh2zero
authored andcommitted
change as per review comment
1 parent c966f61 commit f4746f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/NimBLEScan.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,12 +478,11 @@ void NimBLEScan::clearResults() {
478478
* @brief Dump the scan results to the log.
479479
*/
480480
void NimBLEScanResults::dump() const {
481+
#if CONFIG_NIMBLE_CPP_LOG_LEVEL >=3
481482
for (const auto& dev : m_deviceVec) {
482483
NIMBLE_LOGI(LOG_TAG, "- %s", dev->toString().c_str());
483-
#if CONFIG_NIMBLE_CPP_LOG_LEVEL < 3
484-
(void)dev;
484+
}
485485
#endif
486-
}
487486
} // dump
488487

489488
/**

0 commit comments

Comments
 (0)