[qmp6988] fix false report of software reset error (#16843)

This commit is contained in:
Ross Tyler
2026-06-05 11:31:17 -07:00
committed by GitHub
parent aa11ddb333
commit 2ab4399ae5

View File

@@ -216,10 +216,7 @@ int32_t QMP6988Component::get_compensated_pressure_(qmp6988_ik_data_t *ik, int32
}
void QMP6988Component::software_reset_() {
uint8_t ret = 0;
ret = this->write_byte(QMP6988_RESET_REG, 0xe6);
if (ret != i2c::ERROR_OK) {
if (!this->write_byte(QMP6988_RESET_REG, 0xe6)) {
ESP_LOGE(TAG, "Software Reset (0xe6) failed");
}
delay(10);