From 42276e3f677f2ee6d53c5f8ce75b36cbaa26db54 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 15 Oct 2026 15:19:38 -1000 Subject: [PATCH] Brace the single log call in as3935 write_register --- esphome/components/as3935_i2c/as3935_i2c.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/as3935_i2c/as3935_i2c.cpp b/esphome/components/as3935_i2c/as3935_i2c.cpp index a4f4d7c62f8..d9ed2b5a9f3 100644 --- a/esphome/components/as3935_i2c/as3935_i2c.cpp +++ b/esphome/components/as3935_i2c/as3935_i2c.cpp @@ -9,8 +9,9 @@ void I2CAS3935Component::write_register(uint8_t reg, uint8_t mask, uint8_t bits, const uint8_t value = bits << start_pos; // Bits of value outside mask were ORed in before, so they stay part of the update // Also called at runtime, so a transient bus error only warns, like read_register() - if (!this->update_register(reg, mask | value, value)) + if (!this->update_register(reg, mask | value, value)) { ESP_LOGW(TAG, "Failed to update register 0x%02X", reg); + } } uint8_t I2CAS3935Component::read_register(uint8_t reg) {