Hello All,
I'm seeing array contents being copied from local array to global. Debugging shows me that after the local function returns, the global array has no data!
int ProcessRead RegCommand(char *pcInpString) //modified from I2C demo
...
Ret_IF_ERR(I2C_IF_READ(ucDevAddr,&aucRdDataBuf[0], ucRdLen));
...
memmove(g_cBsdBuf, aucRdDataBuf, sizeof(aucRdDataBuf)); //global unsigned char array g_cBsdBuf used for TCP socket data buffer.
Return SUCCESS;