mirror of
https://github.com/esphome/esphome.git
synced 2025-09-27 15:42:22 +01:00
Update mcp4461.cpp
This commit is contained in:
@@ -341,7 +341,7 @@ void Mcp4461Component::set_eeprom_value(MCP4461EEPRomLocation location, uint16_t
|
|||||||
this->mcp4461_write_(addr, value, true);
|
this->mcp4461_write_(addr, value, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mcp4461Component::mcp4461_write_(uint8_t addr, uint16_t data, bool nonvolatile = false) {
|
void Mcp4461Component::mcp4461_write_(uint8_t addr, uint16_t data, bool nonvolatile) {
|
||||||
uint8_t reg = 0;
|
uint8_t reg = 0;
|
||||||
if (data > 0xFF) {
|
if (data > 0xFF) {
|
||||||
reg = 1;
|
reg = 1;
|
||||||
|
Reference in New Issue
Block a user