From 49e4bdd9bf22e8d33ef77652e30548db54f1d71d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Tue, 26 Mar 2024 16:23:02 +0000 Subject: [PATCH] no need to do that --- esphome/components/lora/lora.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/esphome/components/lora/lora.cpp b/esphome/components/lora/lora.cpp index fe2d062bb1..b972a7e4ad 100644 --- a/esphome/components/lora/lora.cpp +++ b/esphome/components/lora/lora.cpp @@ -34,23 +34,7 @@ void Lora::setup() { this->pin_aux_->setup(); this->pin_m0_->setup(); this->pin_m1_->setup(); - if (this->pin_aux_ != nullptr) { - this->pin_aux_->pin_mode(gpio::FLAG_INPUT); - ESP_LOGD(TAG, "Init AUX pin!"); - } - if (this->pin_m0_ != nullptr) { - this->pin_m0_->pin_mode(gpio::FLAG_OUTPUT); - ESP_LOGD(TAG, "Init M0 pin!"); - this->pin_m0_->digital_write(false); - } - if (this->pin_m1_ != nullptr) { - this->pin_m1_->pin_mode(gpio::FLAG_OUTPUT); - ESP_LOGD(TAG, "Init M1 pin!"); - this->pin_m1_->digital_write(false); - } - set_mode_(MODE_0_NORMAL); - ESP_LOGD(TAG, "Setup success"); }