mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 10:44:13 +01:00
Update esphome/components/gp8211/output/gp8211_output.cpp
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
e11a694222
commit
1544bd01e5
1 changed files with 3 additions and 0 deletions
|
@ -19,7 +19,10 @@ void GP8211Output::write_state(float state) {
|
|||
|
||||
if (err != i2c::ERROR_OK) {
|
||||
ESP_LOGE(TAG, "Error writing to GP8211, code %d", err);
|
||||
this->status_set_error();
|
||||
return;
|
||||
}
|
||||
this->status_clear_error();
|
||||
}
|
||||
|
||||
} // namespace gp8211
|
||||
|
|
Loading…
Reference in a new issue