mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +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;
|
||||
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;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue