From ce7c9cec7cd029ea0056846ce59a7682d9937de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Fri, 17 May 2024 21:28:17 +0100 Subject: [PATCH] Update ebyte_lora.cpp --- esphome/components/ebyte_lora/ebyte_lora.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/esphome/components/ebyte_lora/ebyte_lora.cpp b/esphome/components/ebyte_lora/ebyte_lora.cpp index 49b94df904..17945ca683 100644 --- a/esphome/components/ebyte_lora/ebyte_lora.cpp +++ b/esphome/components/ebyte_lora/ebyte_lora.cpp @@ -213,11 +213,9 @@ void EbyteLoraComponent::update() { this->get_current_config_(); return; } else { - if (this->check_config_()) { - ESP_LOGD(TAG, "Config is good to go!"); - } else { + if (!this->check_config_()) { + ESP_LOGD(TAG, "Config is not right, changing it now"); this->set_config_(); - ESP_LOGD(TAG, "Config is not right, have to do something about that!"); } } if (this->get_mode_() != NORMAL) {