Skip to content

Commit

Permalink
Fix 'CMD_AUDIO_STATE' (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffLIrion committed Sep 22, 2019
1 parent 885dbf3 commit e95513e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion androidtv/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
CMD_SUCCESS1_FAILURE0 = r" && echo -e '1\c' || echo -e '0\c'"

#: Get the audio state
CMD_AUDIO_STATE = r"dumpsys audio | grep -v 'Buffer Queue' | grep -q paused && echo -e '1\c' || (dumpsys audio | grep -v 'Buffer Queue' | grep -q started && echo '2\c' || echo '0\c')"
CMD_AUDIO_STATE = r"dumpsys audio | grep paused | grep -v 'Buffer Queue' | grep -q paused && echo -e '1\c' || (dumpsys audio | grep started | grep -v 'Buffer Queue' | grep -q started && echo '2\c' || echo '0\c')"

#: Determine whether the device is awake
CMD_AWAKE = "dumpsys power | grep mWakefulness | grep -q Awake"
Expand Down

0 comments on commit e95513e

Please sign in to comment.