mirror of
https://github.com/esphome/esphome.git
synced 2025-04-08 20:00:27 +01:00
Update mcp4461.cpp
This commit is contained in:
parent
474a5c515c
commit
308cbda7e6
@ -341,7 +341,7 @@ void Mcp4461Component::set_eeprom_value(MCP4461EEPRomLocation location, uint16_t
|
||||
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;
|
||||
if (data > 0xFF) {
|
||||
reg = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user