This commit is contained in:
Willy-JL
2023-10-02 23:04:55 +01:00
2 changed files with 33 additions and 3 deletions

View File

@@ -374,13 +374,13 @@ static void bt_change_profile(Bt* bt, BtMessage* message) {
*message->result = false;
}
}
api_lock_unlock(message->lock);
if(message->lock) api_lock_unlock(message->lock);
}
static void bt_close_connection(Bt* bt, BtMessage* message) {
bt_close_rpc_connection(bt);
furi_hal_bt_stop_advertising();
api_lock_unlock(message->lock);
if(message->lock) api_lock_unlock(message->lock);
}
static inline FuriHalBtProfile get_hal_bt_profile(BtProfile profile) {