Other Parts Discussed in Thread: CC2530
I am to do a UART cmd parse with light_switch example in BasicRF,but the parse function work error.
code:
the parse function:
void HalATPoll(void)
{
if (g_at) {
trace("at %d:", g_buflen);
log_hex(g_rxbuf, g_buflen);
trace("\r\n");
g_buflen = 0;
g_at = FALSE;
}
}
when the function is put in light_switch.c, it works well. when cc2530 recv uart cmd, the func printf the "at xx:xx xx" very well.
when the function is put in my app_at.c, it works error, it can't printf anything. And my app_at.c is just filled with the same function and declaration.



