1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-28 21:48:16 +00:00

Update mcp4461.cpp

This commit is contained in:
Oliver Kleinecke 2025-02-06 15:01:56 +01:00 committed by GitHub
parent c1ca965e22
commit 830e843a4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -485,7 +485,7 @@ bool Mcp4461Component::mcp4461_write_(uint8_t addr, uint16_t data, bool nonvolat
}
this->previous_write_exec_time_ = millis();
auto err = this->write_byte(reg, value_byte);
return err;
return err == i2c::ERROR_OK;;
}
}
} // namespace mcp4461