mirror of
https://github.com/esphome/esphome.git
synced 2025-09-15 01:32:19 +01:00
Reduce ESP_LOGCONFIG calls (#9026)
This commit is contained in:
@@ -84,8 +84,10 @@ void SDMMeter::on_modbus_data(const std::vector<uint8_t> &data) {
|
||||
|
||||
void SDMMeter::update() { this->send(MODBUS_CMD_READ_IN_REGISTERS, 0, MODBUS_REGISTER_COUNT); }
|
||||
void SDMMeter::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "SDM Meter:");
|
||||
ESP_LOGCONFIG(TAG, " Address: 0x%02X", this->address_);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"SDM Meter:\n"
|
||||
" Address: 0x%02X",
|
||||
this->address_);
|
||||
for (uint8_t i = 0; i < 3; i++) {
|
||||
auto phase = this->phases_[i];
|
||||
if (!phase.setup)
|
||||
|
Reference in New Issue
Block a user