From aefb983fa7fb5a3776b6bbeab0f4f6d99c0de7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Fri, 11 Oct 2024 12:09:34 +0100 Subject: [PATCH] Update ebyte_lora_component.cpp --- esphome/components/ebyte_lora/ebyte_lora_component.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/components/ebyte_lora/ebyte_lora_component.cpp b/esphome/components/ebyte_lora/ebyte_lora_component.cpp index c52d2ac7c8..0954c3ec05 100644 --- a/esphome/components/ebyte_lora/ebyte_lora_component.cpp +++ b/esphome/components/ebyte_lora/ebyte_lora_component.cpp @@ -346,6 +346,8 @@ void EbyteLoraComponent::set_mode_(ModeType mode) { if (!this->can_send_message_("set_mode_")) { return; } + // recommended to wait for 2ms after high + delay(2); switch (mode) { case NORMAL: this->pin_m0_->digital_write(false); @@ -386,7 +388,7 @@ bool EbyteLoraComponent::can_send_message_(const char *info) { } } void EbyteLoraComponent::update() { - if (this->busy_till_ = 0) { + if (this->busy_till_ == 0) { // give it a few seconds before doing this busy_till_ = millis() + 1500; return;