Update ebyte_lora_component.cpp

This commit is contained in:
Daniël Koek 2024-10-04 14:32:44 +01:00
parent d3f435cd92
commit 355b84eb78

View file

@ -450,7 +450,8 @@ void EbyteLoraComponent::process_(std::vector<uint8_t> data) {
// key length for the sensor data
i++;
auto sensor_name_length = data[i];
uint8_t sensor_name_length = 0;
sensor_name_length = data[i];
if (data.size() - i < sensor_name_length) {
return ESP_LOGV(TAG, "Name length of %u not available", sensor_name_length);
}