mirror of
https://github.com/esphome/esphome.git
synced 2025-01-08 13:51:43 +01:00
Update ebyte_lora_component.cpp
This commit is contained in:
parent
d3f435cd92
commit
355b84eb78
1 changed files with 2 additions and 1 deletions
|
@ -450,7 +450,8 @@ void EbyteLoraComponent::process_(std::vector<uint8_t> data) {
|
||||||
|
|
||||||
// key length for the sensor data
|
// key length for the sensor data
|
||||||
i++;
|
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) {
|
if (data.size() - i < sensor_name_length) {
|
||||||
return ESP_LOGV(TAG, "Name length of %u not available", sensor_name_length);
|
return ESP_LOGV(TAG, "Name length of %u not available", sensor_name_length);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue