mirror of
https://github.com/esphome/esphome.git
synced 2025-01-12 07:33:19 +01:00
Update gp8211_output.cpp
This commit is contained in:
parent
44d62b8dac
commit
e8e8097e8c
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ void GP8211Output::write_state(float state) {
|
|||
ESP_LOGD(TAG, "Calculated DAC value: %u", value);
|
||||
|
||||
i2c::ErrorCode err = this->parent_->write_register(OUTPUT_REGISTER, (uint8_t *)&value, 2);
|
||||
|
||||
|
||||
if (err != i2c::ERROR_OK) {
|
||||
ESP_LOGE(TAG, "Error writing to GP8211, code %d", err);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue