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:
Isaac Hermida 2023-06-30 08:43:02 +02:00
parent 9ce94e4af4
commit 6feaa6e3c0
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ bluetooth_start() {
fi
hciattach -t5 /dev/ttyBt any -s 3000000 3000000 flow && \
hciconfig ${HCI_IFACE} up && \
sleep 0.2 && \
log "Bluetooth activated" && return
log "[ERROR] Cannot initialize Bluetooth"