Brace the single log call in as3935 write_register

This commit is contained in:
J. Nick Koston
2026-10-15 15:19:38 -10:00
parent 28defaa8c0
commit 42276e3f67
+2 -1
View File
@@ -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) {