Update wm8978.c

This commit is contained in:
wizmo2
2021-04-06 11:14:21 -04:00
committed by Wizmo2
parent a3b23bffc2
commit e25b098678

View File

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