Fix bluetooth (#110)

* Update run.sh

* Update config.json
This commit is contained in:
Pascal Vizeli
2017-06-05 23:13:36 +02:00
committed by GitHub
parent 895109494b
commit f3284d0a01
2 changed files with 6 additions and 2 deletions

View File

@@ -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/",

View File

@@ -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