Merge branch 'dev_ck_v2.1_feature_enhancement#1780#' into 'dev_ck_v2.1'

dev_ck_v2.1_feature_enhancement#1780#1:修改get_heartbeat_status打印级别 2:修改case24打印分支判断条件

See merge request ucp/driver/ucp4008_platform_arm!58
This commit is contained in:
Weihua Li 2024-03-27 05:40:13 +00:00
commit 97f95befc5
2 changed files with 5 additions and 5 deletions

View File

@ -71,7 +71,7 @@ uint32_t get_heartbeat_status(void)
u32coreHeartbeatBitmap &= u32coreHeartbeatMask; 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; return u32coreHeartbeatBitmap;
} }

View File

@ -36,7 +36,7 @@ uint32_t gu32_tick_receive_ctrl = 0;
uint32_t gu32_tick_from_tx_ctrl = 0; uint32_t gu32_tick_from_tx_ctrl = 0;
uint32_t gu32_rx_callback_data_cnt = 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) 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 ((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); 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 ((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); 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 ((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); UCP_PRINT_ERROR("[3],qNO[%d],sfn[%d],slot[%d],diff[%d]",UCP4008_TRAFFIC_NR_eMBB_DATA,sfn,slot,diff);
} }