Skip to content

Commit

Permalink
Update wm8978.c
Browse files Browse the repository at this point in the history
  • Loading branch information
wizmo2 authored and Wizmo2 committed Apr 10, 2021
1 parent a3b23bf commit e25b098
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/squeezelite/wm8978/wm8978.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

/****************************************************************************************
Expand Down

0 comments on commit e25b098

Please sign in to comment.