Commit a231a287 authored by Chun Fan's avatar Chun Fan
Browse files

Fixed whitespacing issue in the code copied from sdk

parent 692e835b
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment