diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c7ab8cec43c..038d5ba2a92e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file. - Scripter timer issue (#19914) - Zero-Cross Dimmer for ESP32 with Core3 (#19929) - Matter flow sensor (#19961) +- Berry ``gpio.dac_voltage()`` broken in 13.2.0 ### Removed diff --git a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_gpio.ino b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_gpio.ino index 191c0c8f6891..7335665b22fd 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_gpio.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_gpio.ino @@ -160,8 +160,8 @@ extern "C" { esp_err_t err = dac_oneshot_new_channel(&channel_cfg, &channel_handle); #else dac_channel_t channel = (25 == pin) ? DAC_CHANNEL_1 : DAC_CHANNEL_2; -// esp_err_t err = dac_output_voltage(channel, dac_value); - esp_err_t err = dac_output_enable(channel); + esp_err_t err = dac_output_voltage(channel, dac_value); + // err = dac_output_enable(channel); #endif if (err) { be_raisef(vm, "internal_error", "Error: esp_err_tdac_output_voltage(%i, %i) -> %i", channel, dac_value, err); @@ -180,8 +180,8 @@ extern "C" { esp_err_t err = dac_oneshot_new_channel(&channel_cfg, &channel_handle); #else dac_channel_t channel = (17 == pin) ? DAC_CHANNEL_1 : DAC_CHANNEL_2; -// esp_err_t err = dac_output_voltage(channel, dac_value); - esp_err_t err = dac_output_enable(channel); + esp_err_t err = dac_output_voltage(channel, dac_value); + // err = dac_output_enable(channel); #endif if (err) { be_raisef(vm, "internal_error", "Error: esp_err_tdac_output_voltage(%i, %i) -> %i", channel, dac_value, err);