浏览代码

Update wm8978.c

wizmo2 4 年之前
父节点
当前提交
e25b098678
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      components/squeezelite/wm8978/wm8978.c

+ 4 - 4
components/squeezelite/wm8978/wm8978.c

@@ -117,16 +117,16 @@ static void power(adac_power_e mode) {
  * speaker
  */
 static void speaker(bool active) {
-	if (active) i2c_json_execute("speakeroff");
-	else i2c_json_execute("speakeron");
+	if (active) i2c_json_execute("speakeron");
+	else i2c_json_execute("speakeroff");
 } 
 
 /****************************************************************************************
  * headset
  */
 static void headset(bool active) {
-	if (active) i2c_json_execute("headsetoff");
-	else i2c_json_execute("headseton");
+	if (active) i2c_json_execute("headseton");
+	else i2c_json_execute("headsetoff");
 } 
 
 /****************************************************************************************