From d621b6c44fcd6025648f7cc2ccd2f06426e78226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Thu, 1 Feb 2024 16:00:26 +0000 Subject: [PATCH] updates --- esphome/components/ebyte_lora_e220/ebyte_lora_e220.cpp | 5 ++++- esphome/components/ebyte_lora_e220/ebyte_lora_e220.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/esphome/components/ebyte_lora_e220/ebyte_lora_e220.cpp b/esphome/components/ebyte_lora_e220/ebyte_lora_e220.cpp index ce1ac4a4d3..01cd5ec176 100644 --- a/esphome/components/ebyte_lora_e220/ebyte_lora_e220.cpp +++ b/esphome/components/ebyte_lora_e220/ebyte_lora_e220.cpp @@ -5,6 +5,9 @@ namespace esphome { namespace ebyte_lora_e220 { void EbyteLoraE220::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!"); @@ -113,7 +116,7 @@ void EbyteLoraE220::dump_config() { LOG_PIN(" M0 Pin: ", this->pin_m0); LOG_PIN(" M1 Pin: ", this->pin_m1); }; -void EbyteLoraE220::update() { +void EbyteLoraE220::loop() { // This will be called by App.loop() if (this->available() > 1) { diff --git a/esphome/components/ebyte_lora_e220/ebyte_lora_e220.h b/esphome/components/ebyte_lora_e220/ebyte_lora_e220.h index d41e3354fe..1d5da38a14 100644 --- a/esphome/components/ebyte_lora_e220/ebyte_lora_e220.h +++ b/esphome/components/ebyte_lora_e220/ebyte_lora_e220.h @@ -36,7 +36,7 @@ class EbyteLoraE220 : public PollingComponent, public uart::UARTDevice { void set_pin_m1(GPIOPin *s) { pin_m1 = s; } void setup() override; void dump_config() override; - void update() override; + void loop() override; private: MODE_TYPE mode = MODE_0_NORMAL;