From 29d490bd08de49c6b5519411dba88d889f3285fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Fri, 11 Oct 2024 11:53:52 +0100 Subject: [PATCH] don't care if the mode is good or not --- .../components/ebyte_lora/ebyte_lora_component.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/esphome/components/ebyte_lora/ebyte_lora_component.cpp b/esphome/components/ebyte_lora/ebyte_lora_component.cpp index 265f897a55..b743355f1e 100644 --- a/esphome/components/ebyte_lora/ebyte_lora_component.cpp +++ b/esphome/components/ebyte_lora/ebyte_lora_component.cpp @@ -310,8 +310,6 @@ void EbyteLoraComponent::request_current_config_() { } } ModeType EbyteLoraComponent::get_mode_() { - if (!this->can_send_message_("get_mode_")) - return MODE_INIT; bool pin1 = this->pin_m0_->digital_read(); bool pin2 = this->pin_m1_->digital_read(); if (!pin1 && !pin2) { @@ -343,16 +341,6 @@ void EbyteLoraComponent::set_mode_(ModeType mode) { this->current_mode_ = mode; return; } - // when the system starts, aux will stay low until you set the first mode - // so make sure mode init isn't set AND we can't sent because aux is low - if (!this->can_send_message_("set_mode")) { - if (this->current_mode_ == MODE_INIT) { - ESP_LOGD(TAG, "Very first time setting the mode, going to ignore device busy state"); - } else { - ESP_LOGD(TAG, "Device busy lets wait, current mode is %u", this->current_mode_); - return; - } - } switch (mode) { case NORMAL: this->pin_m0_->digital_write(false);