Reduce ESP_LOGCONFIG calls (#9026)
This commit is contained in:
1 parent
80dddb4cae
commit
c0b05ada1a
218 files changed
+1569
-931
No files matched your search
@@ -10,8 +10,10 @@ static const char *const TAG = "pylontech.sensor";
|
||||
PylontechSensor::PylontechSensor(int8_t bat_num) { this->bat_num_ = bat_num; }
|
||||
|
||||
void PylontechSensor::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Pylontech Sensor:");
|
||||
ESP_LOGCONFIG(TAG, " Battery %d", this->bat_num_);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"Pylontech Sensor:\n"
|
||||
" Battery %d",
|
||||
this->bat_num_);
|
||||
LOG_SENSOR(" ", "Voltage", this->voltage_sensor_);
|
||||
LOG_SENSOR(" ", "Current", this->current_sensor_);
|
||||
LOG_SENSOR(" ", "Temperature", this->temperature_sensor_);
|
||||
|
||||
Reference in new issue
Block a user