mirror of
https://github.com/esphome/esphome.git
synced 2025-01-03 19:31:46 +01:00
hydreon_rgxx: Fix parsing of data line (#7192)
This commit is contained in:
parent
e02319dcff
commit
f737ca6e28
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ void HydreonRGxxComponent::process_line_() {
|
||||||
}
|
}
|
||||||
bool is_data_line = false;
|
bool is_data_line = false;
|
||||||
for (int i = 0; i < NUM_SENSORS; i++) {
|
for (int i = 0; i < NUM_SENSORS; i++) {
|
||||||
if (this->sensors_[i] != nullptr && this->buffer_starts_with_(PROTOCOL_NAMES[i])) {
|
if (this->sensors_[i] != nullptr && this->buffer_.find(PROTOCOL_NAMES[i]) != std::string::npos) {
|
||||||
is_data_line = true;
|
is_data_line = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue