mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Added VTX device status to MSP
This commit is contained in:
parent
32373e3e05
commit
9db5b502b9
7 changed files with 103 additions and 1 deletions
|
@ -1201,6 +1201,15 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
|
|||
}
|
||||
break;
|
||||
|
||||
#ifdef USE_VTX_COMMON
|
||||
case MSP2_GET_VTX_DEVICE_STATUS:
|
||||
{
|
||||
const vtxDevice_t *vtxDevice = vtxCommonDevice();
|
||||
vtxCommonSerializeDeviceStatus(vtxDevice, dst);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
case MSP_RC:
|
||||
for (int i = 0; i < rxRuntimeState.channelCount; i++) {
|
||||
sbufWriteU16(dst, rcData[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue