From 8922ab51d7b41b869e96e2e8c5e9a08a1f6a94f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Tue, 20 Feb 2024 16:36:02 +0000 Subject: [PATCH] Update lora.cpp --- esphome/components/lora/lora.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/lora/lora.cpp b/esphome/components/lora/lora.cpp index 8f63c8b20b..2bf644a38d 100644 --- a/esphome/components/lora/lora.cpp +++ b/esphome/components/lora/lora.cpp @@ -125,7 +125,8 @@ void Lora::dump_config() { LOG_PIN("M1 Pin:", this->pin_m1); }; void Lora::digital_write(uint8_t pin, bool value) { - std::string message = str_snprintf("%02x%02x", 12, pin, value); + ESP_LOGD(TAG, "Starting to write message"); + std::string message = str_snprintf("%02x%02x", 9, pin, value); sendMessage(message); } bool Lora::sendMessage(std::string message) {