From f3284d0a01fcead1b796df92d8672a5cf0f0219e Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 5 Jun 2017 23:13:36 +0200 Subject: [PATCH] Fix bluetooth (#110) * Update run.sh * Update config.json --- bluetooth_bcm43xx/config.json | 2 +- bluetooth_bcm43xx/run.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bluetooth_bcm43xx/config.json b/bluetooth_bcm43xx/config.json index cd20ce3..f512938 100644 --- a/bluetooth_bcm43xx/config.json +++ b/bluetooth_bcm43xx/config.json @@ -1,6 +1,6 @@ { "name": "Bluetooth BCM43xx", - "version": "0.2", + "version": "0.3", "slug": "bluetooth_bcm43xx", "description": "Activate bluetooth for bcm43xx", "url": "https://home-assistant.io/addons/Bluetooth_bcm43xx/", diff --git a/bluetooth_bcm43xx/run.sh b/bluetooth_bcm43xx/run.sh index 1505e6a..df4bf58 100644 --- a/bluetooth_bcm43xx/run.sh +++ b/bluetooth_bcm43xx/run.sh @@ -1,5 +1,9 @@ #!/bin/bash set -e -hciattach /dev/ttyAMA0 bcm43xx 115200 noflow - +hciattach -n /dev/ttyAMA0 bcm43xx 115200 noflow - & +HCI_PID=$! + hciconfig hci0 up + +wait $HCI_PID