Skip to content

Commit

Permalink
examples/ble_central: Fix parameter order of ble_continue_db_discovery()
Browse files Browse the repository at this point in the history
Fix parameter order of ble_continue_db_discovery().
The correct order is the following
- 1st : start characteristic handle value
- 2nd : connection handle value
  • Loading branch information
SPRESENSE committed Jun 5, 2023
1 parent 83eab1a commit 0edc6e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/bluetooth_le_central/bluetooth_le_central_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,10 @@ static void on_db_discovery(struct ble_gatt_event_db_discovery_t *db_disc)

if (db_disc->state.end_handle != 0xFFFF)
{
ble_continue_db_discovery(s_ble_state->ble_connect_handle,
db_disc->state.end_handle + 1);
ble_continue_db_discovery(db_disc->state.end_handle + 1,
s_ble_state->ble_connect_handle);
}

ble_pairing(s_ble_state->ble_connect_handle);
}

Expand Down

0 comments on commit 0edc6e5

Please sign in to comment.