mirror of
https://github.com/esphome/esphome.git
synced 2025-03-31 16:08:15 +01:00
Update mcp4461.cpp
This commit is contained in:
parent
0037c60f5c
commit
e5a41f0f78
@ -555,10 +555,10 @@ bool Mcp4461Component::mcp4461_write_(uint8_t addr, uint16_t data, bool nonvolat
|
|||||||
if (nonvolatile) {
|
if (nonvolatile) {
|
||||||
if (this->write_protected_) {
|
if (this->write_protected_) {
|
||||||
ESP_LOGW(TAG, "Ignoring write to write protected chip");
|
ESP_LOGW(TAG, "Ignoring write to write protected chip");
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
if (this->is_eeprom_busy_()) {
|
if (this->is_eeprom_busy_()) {
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
this->previous_write_exec_time_ = millis();
|
this->previous_write_exec_time_ = millis();
|
||||||
auto err = this->write_byte(reg, value_byte);
|
auto err = this->write_byte(reg, value_byte);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user