From c4d42b3f41fdf2494bd7cad89ced8ba45f157c4c Mon Sep 17 00:00:00 2001 From: "huanfeng.wang" Date: Wed, 27 Mar 2024 13:29:00 +0800 Subject: [PATCH] =?UTF-8?q?1:=E4=BF=AE=E6=94=B9get=5Fheartbeat=5Fstatus?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E7=BA=A7=E5=88=AB=202=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E6=94=B9case24=E6=89=93=E5=8D=B0=E5=88=86=E6=94=AF=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- osp/src/ospHeartbeat.c | 2 +- test/case24/src/testcase24.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/osp/src/ospHeartbeat.c b/osp/src/ospHeartbeat.c index 5b59c6f..3111356 100644 --- a/osp/src/ospHeartbeat.c +++ b/osp/src/ospHeartbeat.c @@ -71,7 +71,7 @@ uint32_t get_heartbeat_status(void) u32coreHeartbeatBitmap &= u32coreHeartbeatMask; - UCP_PRINT_WARN("[get_heartbeat_status]: HeartbeatBitMap = 0x%x\r\n", u32coreHeartbeatBitmap); + UCP_PRINT_LOG("[get_heartbeat_status]: HeartbeatBitMap = 0x%x\r\n", u32coreHeartbeatBitmap); return u32coreHeartbeatBitmap; } diff --git a/test/case24/src/testcase24.c b/test/case24/src/testcase24.c index 8ac934d..982bdee 100644 --- a/test/case24/src/testcase24.c +++ b/test/case24/src/testcase24.c @@ -36,7 +36,7 @@ uint32_t gu32_tick_receive_ctrl = 0; uint32_t gu32_tick_from_tx_ctrl = 0; uint32_t gu32_rx_callback_data_cnt = 0; -uint32_t gu32_switch = 0; +uint32_t gu32_switch = 1; void osp_switch(uint32_t u32_switch) { @@ -106,7 +106,7 @@ uint32_t rx1_callback_data(const char* buf,uint32_t payloadSize) if ((diff > 1020000) || (diff < 980000)) { - if((gu32_switch & 0x10) == 1) + if((gu32_switch & 0x10) == 0x10) { UCP_PRINT_ERROR("[1],qNO[%d],sfn[%d],slot[%d],diff[%d]",UCP4008_TRAFFIC_NR_eMBB_DATA,sfn,slot,diff); } @@ -141,7 +141,7 @@ uint32_t rx2_callback_data(const char* buf,uint32_t payloadSize) if ((diff > 1020000) || (diff < 980000)) { - if((gu32_switch & 0x100) == 1) + if((gu32_switch & 0x100) == 0x100) { UCP_PRINT_ERROR("[2],qNO[%d],sfn[%d],slot[%d],diff[%d]",UCP4008_TRAFFIC_NR_eMBB_DATA,sfn,slot,diff); } @@ -176,7 +176,7 @@ uint32_t rx3_callback_data(const char* buf,uint32_t payloadSize) if ((diff > 1020000) || (diff < 980000)) { - if((gu32_switch & 0x1000) == 1) + if((gu32_switch & 0x1000) == 0x1000) { UCP_PRINT_ERROR("[3],qNO[%d],sfn[%d],slot[%d],diff[%d]",UCP4008_TRAFFIC_NR_eMBB_DATA,sfn,slot,diff); }