mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-09 15:14:20 +01:00
Change baud of rpi (#344)
* Update run.sh * Fix bluetooth * Update CHANGELOG.md * Update config.json
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
## 2.3
|
||||
- Enable PSCAN
|
||||
|
||||
## 2.2
|
||||
- Fix device-tree path for Supervisor 113
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Bluetooth BCM43xx",
|
||||
"version": "2.2",
|
||||
"version": "2.3",
|
||||
"slug": "bluetooth_bcm43xx",
|
||||
"description": "Activate Bluetooth for Broadcom 43xx chips",
|
||||
"url": "https://home-assistant.io/addons/bluetooth_bcm43xx/",
|
||||
|
||||
@@ -14,8 +14,11 @@ B2="$(echo "$SERIAL" | cut -c5-6)"
|
||||
B3="$(echo "$SERIAL" | cut -c7-8)"
|
||||
BDADDR="$(printf b8:27:eb:%02x:%02x:%02x $((0x$B1 ^ 0xaa)) $((0x$B2 ^ 0xaa)) $((0x$B3 ^ 0xaa)))"
|
||||
|
||||
hciattach /dev/ttyAMA0 bcm43xx 921600 noflow - "$BDADDR"
|
||||
hciattach /dev/ttyAMA0 bcm43xx 921600 - "$BDADDR"
|
||||
sleep 1
|
||||
|
||||
hciconfig hci0 up
|
||||
hciconfig hci0 piscan
|
||||
|
||||
while pgrep hciattach > /dev/null
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user