Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Improving comments. include {}
Browse files Browse the repository at this point in the history
  • Loading branch information
ravibhagavandas committed May 21, 2020
1 parent 5e0a90e commit 36c1551
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ uint32_t app_timer_create(app_timer_id_t const * p_timer_id,
return NRF_ERROR_INVALID_STATE;
}

/* If already a FreeRTOS timer exists, delete and recreate the timer. */
/* If a FreeRTOS timer already exists, delete and recreate the timer. */
if (pinfo->osHandle != NULL)
{
timer_handle = ( TimerHandle_t ) ( pinfo->osHandle );
Expand All @@ -154,15 +154,21 @@ uint32_t app_timer_create(app_timer_id_t const * p_timer_id,
memset(pinfo, 0, sizeof(app_timer_info_t));

if (mode == APP_TIMER_MODE_SINGLE_SHOT)
{
timer_mode = pdFALSE;
}
else
{
timer_mode = pdTRUE;
}

pinfo->func = timeout_handler;
pinfo->osHandle = xTimerCreate(" ", 1000, timer_mode, pinfo, app_timer_callback);

if (pinfo->osHandle == NULL)
{
err_code = NRF_ERROR_NULL;
}

return err_code;
}
Expand Down

0 comments on commit 36c1551

Please sign in to comment.