mirror of
https://github.com/esphome/esphome.git
synced 2025-07-29 14:46:40 +00:00
[i2c] Fix logging level for bus scan results in dump_config (#9904)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
a9d6ece752
commit
d54db471bd
@ -151,13 +151,13 @@ void IDFI2CBus::dump_config() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (this->scan_) {
|
if (this->scan_) {
|
||||||
ESP_LOGI(TAG, "Results from bus scan:");
|
ESP_LOGCONFIG(TAG, "Results from bus scan:");
|
||||||
if (scan_results_.empty()) {
|
if (scan_results_.empty()) {
|
||||||
ESP_LOGI(TAG, "Found no devices");
|
ESP_LOGCONFIG(TAG, "Found no devices");
|
||||||
} else {
|
} else {
|
||||||
for (const auto &s : scan_results_) {
|
for (const auto &s : scan_results_) {
|
||||||
if (s.second) {
|
if (s.second) {
|
||||||
ESP_LOGI(TAG, "Found device at address 0x%02X", s.first);
|
ESP_LOGCONFIG(TAG, "Found device at address 0x%02X", s.first);
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGE(TAG, "Unknown error at address 0x%02X", s.first);
|
ESP_LOGE(TAG, "Unknown error at address 0x%02X", s.first);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user