diff --git a/app/lib/a_process/ca_dbg.c b/app/lib/a_process/ca_dbg.c index df9de89..a587454 100755 --- a/app/lib/a_process/ca_dbg.c +++ b/app/lib/a_process/ca_dbg.c @@ -592,11 +592,11 @@ int32_t _debug_pkt_process(char *buf, int32_t len) LD_E_RETURN(DBG_M_CA_DBG, _debug_pkt_check(buf, len)); msg_proc_t *ptable = &dbg_proc_table[0]; - for (; DEBUG_INVALID != head->cmd; ptable++) + for (; ptable->uiMsgId < DEBUG_INVALID; ptable++) { + DBG(DBG_M_CA_DBG, "cmd = 0x%x, id = 0x%x, fxn=%p\n", head->cmd, ptable->uiMsgId, ptable->pfMsgProcFxn); if (head->cmd == ptable->uiMsgId) { - //printf("cmd = 0x%x\n", head->cmd); if (ptable->pfMsgProcFxn) { debug_msg_info_t msg = {0}; @@ -604,8 +604,8 @@ int32_t _debug_pkt_process(char *buf, int32_t len) msg.len = head->len; msg.pbuf = buf + DEBUG_PKT_DATA_POS; ptable->pfMsgProcFxn(&msg); - break; } + break; } } return E_NONE;