Skip to content

Commit 7711644

Browse files
committed
Update sen5x.cpp
1 parent 97f1b31 commit 7711644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/sen5x/sen5x.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void SEN5XComponent::internal_setup_(uint8_t state) {
212212
this->mark_failed();
213213
return;
214214
}
215-
if (this->model_.is_sen6x()) {
215+
if (this->is_sen6x()) {
216216
this->firmware_minor_ = firmware && 0xFF;
217217
this->firmware_major_ = firmware >> 8;
218218
ESP_LOGD(TAG, "Firmware version %u.%u", this->firmware_major_, this->firmware_minor_);

0 commit comments

Comments
 (0)