/* Function for changing the swap sub state and dispatching state entry action.  */
static void swap_sub_state_state_change(flash_swap_sub_state_t new_state)
/* Function for changing the swap sub state and dispatching state entry action.  */
static void swap_sub_state_state_change(flash_swap_sub_state_t new_state)
{
    m_swap_sub_state = new_state;
    swap_sub_state_entry_action_run();    
}