[ina260] Combine log statements to reduce loop blocking (#12903)
This commit is contained in:
1 parent
9bbfad4a08
commit
548600b47a
1 file changed
+5
-5
@@ -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_);
|
||||
|
||||
Reference in new issue
Block a user