Skip to content

Commit

Permalink
force pad_select for gpio use in dac_controlset - release
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Nov 9, 2023
1 parent e830b4d commit d31697e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-11-09
- force gpio_pad_select_gpio in dac_controlset in case somebody uses UART gpio's (or other pre-programmed)

2023-11-08
- execute dac_controlset even whne there is no i2s (for gpio)

Expand Down
1 change: 1 addition & 0 deletions components/squeezelite/external/dac_external.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ bool i2c_json_execute(char *set) {
if ((action = cJSON_GetObjectItemCaseSensitive(item, "gpio")) != NULL) {
cJSON *level = cJSON_GetObjectItemCaseSensitive(item, "level");
ESP_LOGI(TAG, "set GPIO %d at %d", action->valueint, level->valueint);
if (action->valueint < GPIO_NUM_MAX) gpio_pad_select_gpio(action->valueint);
gpio_set_direction_x(action->valueint, GPIO_MODE_OUTPUT);
gpio_set_level_x(action->valueint, level->valueint);
continue;
Expand Down

0 comments on commit d31697e

Please sign in to comment.