ccimx93: bluetooth-init: leave the interface up after attaching
Ensure we leave the Bluetooth interface up after attaching it. If not, under some circumstances, it could be down. https://onedigi.atlassian.net/browse/DEL-8608 Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
parent
9ce94e4af4
commit
6feaa6e3c0
|
|
@ -47,6 +47,8 @@ bluetooth_start() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
hciattach -t5 /dev/ttyBt any -s 3000000 3000000 flow && \
|
hciattach -t5 /dev/ttyBt any -s 3000000 3000000 flow && \
|
||||||
|
hciconfig ${HCI_IFACE} up && \
|
||||||
|
sleep 0.2 && \
|
||||||
log "Bluetooth activated" && return
|
log "Bluetooth activated" && return
|
||||||
|
|
||||||
log "[ERROR] Cannot initialize Bluetooth"
|
log "[ERROR] Cannot initialize Bluetooth"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue