mirror of
https://github.com/esphome/esphome.git
synced 2025-09-20 04:02:21 +01:00
Update mcp4461.cpp
This commit is contained in:
@@ -615,6 +615,10 @@ bool Mcp4461Component::set_eeprom_value(Mcp4461EepromLocation location, uint16_t
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ErrorCode Mcp4461Component::get_error_code() {
|
||||||
|
return this->error_code_;
|
||||||
|
}
|
||||||
|
|
||||||
bool Mcp4461Component::is_writing_() {
|
bool Mcp4461Component::is_writing_() {
|
||||||
/* Read the EEPROM write-active status from the status register */
|
/* Read the EEPROM write-active status from the status register */
|
||||||
bool writing = static_cast<bool>((this->get_status_register_() >> 4) & 0x01);
|
bool writing = static_cast<bool>((this->get_status_register_() >> 4) & 0x01);
|
||||||
|
Reference in New Issue
Block a user