[ufire_ec] Combine log statements to reduce loop blocking (#12925)

This commit is contained in:
J. Nick Koston
2026-01-04 13:03:06 -10:00
committed by GitHub
parent 9d9f9c3c84
commit 5713d69efe

View File

@@ -102,16 +102,16 @@ void UFireECComponent::write_data_(uint8_t reg, float data) {
}
void UFireECComponent::dump_config() {
ESP_LOGCONFIG(TAG, "uFire-EC");
ESP_LOGCONFIG(TAG,
"uFire-EC:\n"
" Temperature Compensation: %f\n"
" Temperature Coefficient: %f",
this->temperature_compensation_, this->temperature_coefficient_);
LOG_I2C_DEVICE(this)
LOG_UPDATE_INTERVAL(this);
LOG_SENSOR(" ", "EC Sensor", this->ec_sensor_);
LOG_SENSOR(" ", "Temperature Sensor", this->temperature_sensor_);
LOG_SENSOR(" ", "Temperature Sensor external", this->temperature_sensor_external_);
ESP_LOGCONFIG(TAG,
" Temperature Compensation: %f\n"
" Temperature Coefficient: %f",
this->temperature_compensation_, this->temperature_coefficient_);
}
} // namespace ufire_ec