From e1c117c6a4ae5d79cceda34daffcae40ea4ed99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Tue, 26 Mar 2024 18:47:56 +0000 Subject: [PATCH] Update lora.cpp --- esphome/components/lora/lora.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/esphome/components/lora/lora.cpp b/esphome/components/lora/lora.cpp index 72590c1736..af10675dbe 100644 --- a/esphome/components/lora/lora.cpp +++ b/esphome/components/lora/lora.cpp @@ -166,8 +166,11 @@ void Lora::loop() { this->rssi_sensor_->publish_state(data[3]); if (this->message_text_sensor_ != nullptr) this->message_text_sensor_->publish_state("Got something"); - if (this->pcf8574_ != nullptr) + if (this->pcf8574_ != nullptr) { + ESP_LOGD(TAG, " pcf8574_ PIN: %u ", data[1]); + ESP_LOGD(TAG, " pcf8574_ VALUE: %u ", data[2]); this->pcf8574_->digital_write(data[1], data[2]); + } } else { ESP_LOGD(TAG, "WEIRD"); }