mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 16:37:52 +01:00
hydreon_rgxx: Fix parsing of data line (#7192)
This commit is contained in:
parent
e02319dcff
commit
f737ca6e28
@ -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 New Issue
Block a user