From 4d40355d5c76f11580697aafdf31114b802055c2 Mon Sep 17 00:00:00 2001 From: wizmo2 Date: Tue, 6 Apr 2021 11:14:21 -0400 Subject: [PATCH] Update wm8978.c --- components/squeezelite/wm8978/wm8978.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/squeezelite/wm8978/wm8978.c b/components/squeezelite/wm8978/wm8978.c index 5a139a84..9c5c92bb 100644 --- a/components/squeezelite/wm8978/wm8978.c +++ b/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"); } /****************************************************************************************