Skip to content

Commit

Permalink
amp gpio polarity parse error - release
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed May 24, 2021
1 parent c9b859e commit 791167f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/squeezelite/output_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ static void jack_handler(bool inserted) {
static void set_amp_gpio(int gpio, char *value) {
char *p;

if (!strcasecmp(value, "amp")) {
if (strcasestr(value, "amp")) {
amp_control.gpio = gpio;
if ((p = strchr(value, ':')) != NULL) amp_control.active = atoi(p + 1);

Expand Down

0 comments on commit 791167f

Please sign in to comment.