mirror of
https://github.com/esphome/esphome.git
synced 2025-04-02 17:08:17 +01:00
Update mcp4461.cpp
This commit is contained in:
parent
5b92bedd1a
commit
0100bfc328
@ -412,7 +412,7 @@ void Mcp4461Component::update_terminal_register(Mcp4461TerminalIdx terminal_conn
|
|||||||
this->reg_[(wiper_index + 1)].terminal_hw = ((terminal_data >> 7) & 0x01);
|
this->reg_[(wiper_index + 1)].terminal_hw = ((terminal_data >> 7) & 0x01);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mcp4461Component::set_terminal_register(Mcp4461TerminalIdx terminal_connector, uint8_t data) {
|
bool Mcp4461Component::set_terminal_register(Mcp4461TerminalIdx terminal_connector, uint8_t data) {
|
||||||
if (this->is_failed()) {
|
if (this->is_failed()) {
|
||||||
ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting");
|
ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting");
|
||||||
return;
|
return;
|
||||||
@ -513,7 +513,7 @@ uint16_t Mcp4461Component::get_eeprom_value(Mcp4461EepromLocation location) {
|
|||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mcp4461Component::set_eeprom_value(Mcp4461EepromLocation location, uint16_t value) {
|
bool Mcp4461Component::set_eeprom_value(Mcp4461EepromLocation location, uint16_t value) {
|
||||||
if (this->is_failed()) {
|
if (this->is_failed()) {
|
||||||
ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting");
|
ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user