diff options
Diffstat (limited to 'proj.py')
-rwxr-xr-x | proj.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -42,12 +42,16 @@ for i in range(1, args_len): pj.set_power(True) elif sys.argv[i] == "off": pj.set_power(False) + elif sys.argv[i] == "get": + print(pj.get_power()) else: print("Command not understood.") elif first_part == "mute": if sys.argv[i] == "on": - pj.set_power(True) + pj.set_mute(True) elif sys.argv[i] == "off": - pj.set_power(False) + pj.set_mute(False) + elif sys.argv[i] == "get": + print(pj.get_mute()) else: print("Command not understood.") |