From 7b16c7e29cf6abb79e19a0c399d5865a33b8f25e Mon Sep 17 00:00:00 2001 From: HUOHUO Date: Thu, 22 May 2025 21:54:50 -0700 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9recv=5Ffirst=5Fsync=E7=9A=84?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E8=BF=94=E5=9B=9E=E7=BB=93=E6=9E=9C=E4=BD=8D?= =?UTF-8?q?=E5=AE=BD=E4=B8=BA16bit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APELib/Receiver_sync_first/src/receiver_Sync_First_Proc.s.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/APELib/Receiver_sync_first/src/receiver_Sync_First_Proc.s.c b/APELib/Receiver_sync_first/src/receiver_Sync_First_Proc.s.c index 3305ebe..35cc15d 100644 --- a/APELib/Receiver_sync_first/src/receiver_Sync_First_Proc.s.c +++ b/APELib/Receiver_sync_first/src/receiver_Sync_First_Proc.s.c @@ -283,7 +283,7 @@ void Receiver_First_Sync_Proc(receiver_sync2first_sync_t* msg_ptr, uint32_t msg_ WAIT_MPU_STOP; TRACE(TRACE_RECEIVER_SYNC_FIRST_ADDR, 3, 5); //dm_check(1); - maxPosition = receiver_sync_first_temp_dm3_ptr[0]; + maxPosition = 0xffff & receiver_sync_first_temp_dm3_ptr[0]; maxsum = receiver_sync_first_temp_dm3_ptr[1]; LOG_ERROR_S("1 maxPosition:%d maxsum:%d\n",maxPosition, maxsum); @@ -346,10 +346,10 @@ void Receiver_First_Sync_Proc(receiver_sync2first_sync_t* msg_ptr, uint32_t msg_ WAIT_MPU_STOP; TRACE(TRACE_RECEIVER_SYNC_FIRST_ADDR, 3, 7); - LOG_ERROR_S("2 maxPosition:%d maxsum:%d\n",receiver_sync_first_temp_dm3_ptr[0], receiver_sync_first_temp_dm3_ptr[1]); + LOG_ERROR_S("2 maxPosition:%d maxsum:%d\n",0xffff & receiver_sync_first_temp_dm3_ptr[0], receiver_sync_first_temp_dm3_ptr[1]); if(maxsum < receiver_sync_first_temp_dm3_ptr[1]) { - maxPosition = receiver_sync_first_temp_dm3_ptr[0]; + maxPosition = 0xffff & receiver_sync_first_temp_dm3_ptr[0]; maxsum = receiver_sync_first_temp_dm3_ptr[1]; } LOG_ERROR_S("3 maxPosition:%d maxsum:%d\n",maxPosition, maxsum);