Skip to content

Commit

Permalink
Fix Berry gpio.dac_voltage() broken in 13.2.0 (#19997)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hadinger authored Nov 12, 2023
1 parent 44ef425 commit 65e07e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_gpio.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 65e07e8

Please sign in to comment.