/* Function for executing the finalization procedure for the command executed. 
Function for executing the finalization procedure for command executed, which includes notifying the application of command completion, consuming the command queue element, and changing the internal state.  */
static void command_end_procedure_run(void)
/* Function for executing the finalization procedure for the command executed. 
Function for executing the finalization procedure for command executed, which includes notifying the application of command completion, consuming the command queue element, and changing the internal state.  */
static void command_end_procedure_run(void)
{    
    app_notify(NRF_SUCCESS, &m_cmd_queue.cmd[m_cmd_queue.rp]);
    command_queue_element_consume();
    sm_state_change(STATE_IDLE);
}