From 6bf4b4d24ae05067447e0abd737957b2938a6583 Mon Sep 17 00:00:00 2001 From: "DESKTOP-I2SDHFF\\akeguo" Date: Wed, 17 Dec 2025 15:31:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E8=AF=A5=E6=98=AF=20for=20(int=20PMK3?= =?UTF-8?q?2Index=20=3D=200;=20PMK32Index=20<=2018;=20PMK32Index++)=20=20?= =?UTF-8?q?=E8=80=8C=E4=B8=8D=E6=98=AF=3D<18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BASE/Src/MSP/msp_485_android.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BASE/Src/MSP/msp_485_android.c b/BASE/Src/MSP/msp_485_android.c index fdafbd1..3827e57 100644 --- a/BASE/Src/MSP/msp_485_android.c +++ b/BASE/Src/MSP/msp_485_android.c @@ -93,7 +93,7 @@ void decode_android_485(uint8_t *buffer, uint16_t length) p_mk32_pointer = (int32_t*) P_U7; //Sbus 设定 - for (int PMK32Index = 0; PMK32Index <= 18; PMK32Index++) + for (int PMK32Index = 0; PMK32Index < 18; PMK32Index++) { //此处必须加类型转换 *p_mk32_pointer = (int16_t)Decoded_Android_HoldingReg_Value[PMK32Index];