1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

Merge pull request #33 from p1ngb4ck/mcp4461_dev

Update mcp4461.cpp
This commit is contained in:
Oliver Kleinecke 2025-02-20 17:55:34 +01:00 committed by GitHub
commit c682fcd904
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -615,10 +615,6 @@ bool Mcp4461Component::set_eeprom_value(Mcp4461EepromLocation location, uint16_t
return true;
}
int Mcp4461Component::get_error_code() {
return this->error_code;
}
bool Mcp4461Component::is_writing_() {
/* Read the EEPROM write-active status from the status register */
bool writing = static_cast<bool>((this->get_status_register_() >> 4) & 0x01);