mirror of
https://github.com/esphome/esphome.git
synced 2024-12-24 14:34:54 +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
f96c4e6875
commit
e11a694222
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ void GP8211Output::dump_config() { ESP_LOGCONFIG(TAG, "GP8211 Output:"); }
|
|||
void GP8211Output::write_state(float state) {
|
||||
|
||||
uint16_t value = static_cast<uint16_t>(state * 32767);
|
||||
ESP_LOGD(TAG, "Calculated DAC value: %u", value);
|
||||
ESP_LOGV(TAG, "Calculated DAC value: %u", value);
|
||||
|
||||
i2c::ErrorCode err = this->parent_->write_register(OUTPUT_REGISTER, (uint8_t *) &value, 2);
|
||||
|
||||
|
|
Loading…
Reference in a new issue