mirror of
https://github.com/esphome/esphome.git
synced 2025-04-09 04:10:35 +01:00
Update esphome/components/mcp4461/mcp4461.cpp
Co-authored-by: Djordje Mandic <6750655+DjordjeMandic@users.noreply.github.com>
This commit is contained in:
parent
a02708da02
commit
3e3aead6bc
@ -151,6 +151,7 @@ void Mcp4461Component::write_wiper_level_(uint8_t wiper, uint16_t value) {
|
|||||||
if (wiper > 3) {
|
if (wiper > 3) {
|
||||||
while (this->is_writing_()) {
|
while (this->is_writing_()) {
|
||||||
ESP_LOGV(TAG, "delaying during eeprom write");
|
ESP_LOGV(TAG, "delaying during eeprom write");
|
||||||
|
yield();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this->mcp4461_write_(this->get_wiper_address_(wiper), value);
|
this->mcp4461_write_(this->get_wiper_address_(wiper), value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user