diff --git a/mqtt_srv.py b/mqtt_srv.py index 0e6994f..5731d63 100755 --- a/mqtt_srv.py +++ b/mqtt_srv.py @@ -676,9 +676,9 @@ def on_message(client, userdata, msg): myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 1' else: if myObj['target'] == "start": - myCmd =f'amixer set Master 100%' + myCmd =f'amixer set Master mute' else: - myCmd =f'amixer set Master 20%' + myCmd =f'amixer set Master unmute' status, output = subprocess.getstatusoutput(myCmd) writeLog(myCmd) output = subprocess.Popen(myCmd, shell=True)