From 6a7b8c41db2eacf893b6c2e57e656d4452de811d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Tue, 7 May 2024 21:03:20 +0100 Subject: [PATCH] Update ebyte_lora.cpp --- esphome/components/ebyte_lora/ebyte_lora.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/ebyte_lora/ebyte_lora.cpp b/esphome/components/ebyte_lora/ebyte_lora.cpp index 0edd70d2ab..3208f4178c 100644 --- a/esphome/components/ebyte_lora/ebyte_lora.cpp +++ b/esphome/components/ebyte_lora/ebyte_lora.cpp @@ -446,7 +446,7 @@ void EbyteLoraComponent::setup_conf_(std::vector data) { this->current_config_.channel = data[i]; } // 8 is reg3; wor_period:3, reserve:1, enable_lbt:1, reserve:1, transmission_mode:1, enable_rssi:1 - if (i == 7) { + if (i == 8) { ESP_LOGD(TAG, "reg3: %c%c%c%c%c%c%c%c", BYTE_TO_BINARY(data[i])); this->current_config_.wor_period = (data[i] >> 0) & 0b111; this->current_config_.enable_lbt = (data[i] >> 4) & 0b1;