/* Finalize WRITE command. 
Function should be called when write command is finished. It sets memory pointer and write all received data to memory array  */
static void ees_writeEnd(size_t cnt)
/* Finalize WRITE command. 
Function should be called when write command is finished. It sets memory pointer and write all received data to memory array  */
static void ees_writeEnd(size_t cnt)
{
        if (cnt > 0)
        {
            size_t n;
            ees_setAddr(m_rxbuff[0]);
            for (n=1; n<cnt; ++n)
            {
                ees_write(m_rxbuff[n]);
            }
        }
    }