/* Function for notifying an application of command completion and transitioning to an error state.  */
static void app_notify_error_state_transit(uint32_t result)
/* Function for notifying an application of command completion and transitioning to an error state.  */
static void app_notify_error_state_transit(uint32_t result)
{
    app_notify(result, &m_cmd_queue.cmd[m_cmd_queue.rp]);
    sm_state_change(STATE_ERROR);                
}