Skip to content

Commit 1f1e51a

Browse files
Thalleyfabiobaltieri
authored andcommitted
Bluetooth: Shell: Fix typo in disconnected
A callback function had a typo where disconencted should have been disconnected. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 78d3f2a commit 1f1e51a

File tree

1 file changed

+2
-2
lines changed
  • subsys/bluetooth/shell

1 file changed

+2
-2
lines changed

subsys/bluetooth/shell/bt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ static void connected(struct bt_conn *conn, uint8_t err)
586586
}
587587
}
588588

589-
static void disconencted_set_new_default_conn_cb(struct bt_conn *conn, void *user_data)
589+
static void disconnected_set_new_default_conn_cb(struct bt_conn *conn, void *user_data)
590590
{
591591
struct bt_conn_info info;
592592

@@ -622,7 +622,7 @@ static void disconnected(struct bt_conn *conn, uint8_t reason)
622622
default_conn = NULL;
623623

624624
/* If we are connected to other devices, set one of them as default */
625-
bt_conn_foreach(BT_CONN_TYPE_LE, disconencted_set_new_default_conn_cb, NULL);
625+
bt_conn_foreach(BT_CONN_TYPE_LE, disconnected_set_new_default_conn_cb, NULL);
626626
}
627627
}
628628

0 commit comments

Comments
 (0)