浏览代码

amp gpio polarity parse error - release

Philippe G 3 年之前
父节点
当前提交
791167f794
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/squeezelite/output_i2s.c

+ 1 - 1
components/squeezelite/output_i2s.c

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