Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Donald Chen
pc-ble-driver-sd_api_v6
Commits
a231a287
Commit
a231a287
authored
Oct 04, 2017
by
Chun Fan
Browse files
Fixed whitespacing issue in the code copied from sdk
parent
692e835b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sd_api_v5/sdk/custom/app_ble_gap_sec_keys.cpp
View file @
a231a287
...
...
@@ -75,9 +75,9 @@ uint32_t app_ble_gap_sec_context_create(uint16_t conn_handle, uint32_t *p_index)
uint32_t
err_code
=
NRF_ERROR_NO_MEM
;
uint32_t
i
;
for
(
i
=
0
;
i
<
SER_MAX_CONNECTIONS
;
i
++
)
for
(
i
=
0
;
i
<
SER_MAX_CONNECTIONS
;
++
i
)
{
if
(
!
m_app_keys_table
[
i
].
conn_active
)
if
(
!
m_app_keys_table
[
i
].
conn_active
)
{
m_app_keys_table
[
i
].
conn_active
=
1
;
m_app_keys_table
[
i
].
conn_handle
=
conn_handle
;
...
...
@@ -95,9 +95,9 @@ uint32_t app_ble_gap_sec_context_destroy(uint16_t conn_handle)
uint32_t
err_code
=
NRF_ERROR_NOT_FOUND
;
uint32_t
i
;
for
(
i
=
0
;
i
<
SER_MAX_CONNECTIONS
;
i
++
)
for
(
i
=
0
;
i
<
SER_MAX_CONNECTIONS
;
++
i
)
{
if
(
m_app_keys_table
[
i
].
conn_handle
==
conn_handle
)
if
(
m_app_keys_table
[
i
].
conn_handle
==
conn_handle
)
{
m_app_keys_table
[
i
].
conn_active
=
0
;
err_code
=
NRF_SUCCESS
;
...
...
@@ -113,9 +113,9 @@ uint32_t app_ble_gap_sec_context_find(uint16_t conn_handle, uint32_t *p_index)
uint32_t
err_code
=
NRF_ERROR_NOT_FOUND
;
uint32_t
i
;
for
(
i
=
0
;
i
<
SER_MAX_CONNECTIONS
;
i
++
)
for
(
i
=
0
;
i
<
SER_MAX_CONNECTIONS
;
++
i
)
{
if
(
(
m_app_keys_table
[
i
].
conn_handle
==
conn_handle
)
&&
(
m_app_keys_table
[
i
].
conn_active
==
1
)
)
if
((
m_app_keys_table
[
i
].
conn_handle
==
conn_handle
)
&&
(
m_app_keys_table
[
i
].
conn_active
==
1
))
{
*
p_index
=
i
;
err_code
=
NRF_SUCCESS
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment