From 46632bab655adf76b853b1c38f3cb559625abf0a Mon Sep 17 00:00:00 2001 From: wangbo Date: Tue, 16 Apr 2024 05:41:40 +0000 Subject: [PATCH] =?UTF-8?q?FIX=201.=E8=A7=A3=E5=86=B3=E5=92=8C=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=B7=A5=E5=85=B7=E9=80=9A=E4=BF=A1=E7=9A=84=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=AE=B5=E9=94=99=E8=AF=AF;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/a_process/ca_dbg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;