From 17887c6191d7269068164e599d47d94a205eec1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Wed, 24 Apr 2024 16:42:43 +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 bfe0f5217e..bfac10dcf2 100644 --- a/esphome/components/ebyte_lora/ebyte_lora.cpp +++ b/esphome/components/ebyte_lora/ebyte_lora.cpp @@ -362,7 +362,7 @@ void EbyteLoraComponent::loop() { if (data[0] == PROGRAM_CONF) { ESP_LOGD(TAG, "GOT PROGRAM_CONF"); memset(&this->config, 0, sizeof(RegisterConfig)); - memcpy(&this->config, &data, sizeof(RegisterConfig)); + memcpy(&this->config, &data, data.size()); this->set_mode_(NORMAL); } }