mirror of
https://github.com/esphome/esphome.git
synced 2025-10-22 03:33:52 +01:00
Streamline setup() logging (k, l, m) (#8928)
This commit is contained in:
@@ -10,7 +10,7 @@ static const char *const TAG = "mcp4461";
|
||||
constexpr uint8_t EEPROM_WRITE_TIMEOUT_MS = 10;
|
||||
|
||||
void Mcp4461Component::setup() {
|
||||
ESP_LOGCONFIG(TAG, "Setting up mcp4461 using address (0x%02X)...", this->address_);
|
||||
ESP_LOGCONFIG(TAG, "Running setup for address 0x%02X", this->address_);
|
||||
auto err = this->write(nullptr, 0);
|
||||
if (err != i2c::ERROR_OK) {
|
||||
this->error_code_ = MCP4461_STATUS_I2C_ERROR;
|
||||
|
Reference in New Issue
Block a user