mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #10413 from limonspb/smartaudio_version
Added vtx device status to MSP
This commit is contained in:
commit
cad720abda
7 changed files with 103 additions and 1 deletions
|
@ -1202,6 +1202,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