Browse Source

AP_MSP: fix for missing ACK on unsupported MSP messages

MSP requires all messages to be acknowledged even if unsupported
c415-sdk
yaapu 4 years ago committed by Andrew Tridgell
parent
commit
0f49058fbd
  1. 3
      libraries/AP_MSP/AP_MSP_Telem_Backend.cpp

3
libraries/AP_MSP/AP_MSP_Telem_Backend.cpp

@ -459,7 +459,8 @@ MSPCommandResult AP_MSP_Telem_Backend::msp_process_out_command(uint16_t cmd_msp, @@ -459,7 +459,8 @@ MSPCommandResult AP_MSP_Telem_Backend::msp_process_out_command(uint16_t cmd_msp,
case MSP_RC:
return msp_process_out_rc(dst);
default:
return MSP_RESULT_ERROR;
// MSP always requires an ACK even for unsupported messages
return MSP_RESULT_ACK;
}
}

Loading…
Cancel
Save