From 79eae18acb7e15487034141043d205a8dfaa00a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Fri, 4 Oct 2024 12:33:58 +0100 Subject: [PATCH] Update ebyte_lora_component.cpp --- esphome/components/ebyte_lora/ebyte_lora_component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/ebyte_lora/ebyte_lora_component.cpp b/esphome/components/ebyte_lora/ebyte_lora_component.cpp index 1a72e7d126..9704a58d93 100644 --- a/esphome/components/ebyte_lora/ebyte_lora_component.cpp +++ b/esphome/components/ebyte_lora/ebyte_lora_component.cpp @@ -430,7 +430,7 @@ void EbyteLoraComponent::process_(std::vector data) { if (first_byte == BINARY_SENSOR_KEY || first_byte == SENSOR_KEY) { for (size_t i = 0; i < data.size() - 1; i++) { uint8_t key = data[i]; - uint32_t u32; + uint32_t u32 = 0; if (key == BINARY_SENSOR_KEY) { // 1 byte for the length of the sensor name, one for the name, 1 for the data if (data.size() - i < 3) {