Update gp8211_output.cpp

This commit is contained in:
haudamekki 2024-10-19 21:07:32 +02:00 committed by GitHub
parent 44d62b8dac
commit e8e8097e8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}