1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[ina260] Combine log statements to reduce loop blocking (#12903)

This commit is contained in:
J. Nick Koston
2026-01-04 11:52:34 -10:00
committed by GitHub
parent 9bbfad4a08
commit 548600b47a

View File

@@ -61,13 +61,13 @@ void INA260Component::setup() {
}
void INA260Component::dump_config() {
ESP_LOGCONFIG(TAG, "INA260:");
ESP_LOGCONFIG(TAG,
"INA260:\n"
" Manufacture ID: 0x%x\n"
" Device ID: 0x%x",
this->manufacture_id_, this->device_id_);
LOG_I2C_DEVICE(this);
LOG_UPDATE_INTERVAL(this);
ESP_LOGCONFIG(TAG, " Manufacture ID: 0x%x", this->manufacture_id_);
ESP_LOGCONFIG(TAG, " Device ID: 0x%x", this->device_id_);
LOG_SENSOR(" ", "Bus Voltage", this->bus_voltage_sensor_);
LOG_SENSOR(" ", "Current", this->current_sensor_);
LOG_SENSOR(" ", "Power", this->power_sensor_);