diff options
-rwxr-xr-x | meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/files/4a_wait_bt.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/files/4a_wait_bt.sh b/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/files/4a_wait_bt.sh index a1df1ea0..9dec4350 100755 --- a/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/files/4a_wait_bt.sh +++ b/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/files/4a_wait_bt.sh @@ -64,9 +64,9 @@ function waitloop() { # wait for bluetooth-service to return something while havetime; do - res=$(afb-client-demo -d unix:/run/user/$UID/apis/ws/Bluetooth-Manager power true) + res=$(afb-client-demo -d unix:/run/user/$UID/apis/ws/Bluetooth-Manager adapter_state true) [[ "$res" =~ \"response\":(.*)}$ ]] && res=${BASH_REMATCH[1]} - [[ "$res" == '{"power":"on"}' ]] && { + [[ "$res" =~ \"powered\":true ]] && { echo "Bluetooth-Manager/power: $res" break } |