|
|
@ -93,7 +93,7 @@ void decode_android_485(uint8_t *buffer, uint16_t length) |
|
|
p_mk32_pointer = (int32_t*) P_U7; |
|
|
p_mk32_pointer = (int32_t*) P_U7; |
|
|
//Sbus 设定
|
|
|
//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]; |
|
|
*p_mk32_pointer = (int16_t)Decoded_Android_HoldingReg_Value[PMK32Index]; |
|
|
|