/* Function for changing application main state and dispatching state entry action.  */
static void sm_state_change(pstorage_state_t new_state)
/* Function for changing application main state and dispatching state entry action.  */
static void sm_state_change(pstorage_state_t new_state)
{
    m_state = new_state;
    state_entry_action_run();
}