mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Fix for VTX and lack of telemetry
This commit is contained in:
parent
323936e7b2
commit
b00e252477
1 changed files with 8 additions and 0 deletions
|
@ -92,7 +92,11 @@ static bool isLowPowerDisarmed(void)
|
||||||
void setMspVtxDeviceStatusReady(const int descriptor)
|
void setMspVtxDeviceStatusReady(const int descriptor)
|
||||||
{
|
{
|
||||||
if (mspVtxStatus != MSP_VTX_STATUS_READY && vtxTableConfig()->bands && vtxTableConfig()->channels && vtxTableConfig()->powerLevels) {
|
if (mspVtxStatus != MSP_VTX_STATUS_READY && vtxTableConfig()->bands && vtxTableConfig()->channels && vtxTableConfig()->powerLevels) {
|
||||||
|
#if defined(USE_MSP_OVER_TELEMETRY)
|
||||||
if (getMspSerialPortDescriptor(mspVtxPortIdentifier) == descriptor || getMspTelemetryDescriptor() == descriptor) {
|
if (getMspSerialPortDescriptor(mspVtxPortIdentifier) == descriptor || getMspTelemetryDescriptor() == descriptor) {
|
||||||
|
#else
|
||||||
|
if (getMspSerialPortDescriptor(mspVtxPortIdentifier) == descriptor) {
|
||||||
|
#endif
|
||||||
mspVtxStatus = MSP_VTX_STATUS_READY;
|
mspVtxStatus = MSP_VTX_STATUS_READY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -214,7 +218,11 @@ static void vtxMspProcess(vtxDevice_t *vtxDevice, timeUs_t currentTimeUs)
|
||||||
DEBUG_SET(DEBUG_VTX_MSP, 0, packetCounter);
|
DEBUG_SET(DEBUG_VTX_MSP, 0, packetCounter);
|
||||||
DEBUG_SET(DEBUG_VTX_MSP, 1, isCrsfPortConfig(portConfig));
|
DEBUG_SET(DEBUG_VTX_MSP, 1, isCrsfPortConfig(portConfig));
|
||||||
DEBUG_SET(DEBUG_VTX_MSP, 2, isLowPowerDisarmed());
|
DEBUG_SET(DEBUG_VTX_MSP, 2, isLowPowerDisarmed());
|
||||||
|
#if defined(USE_MSP_OVER_TELEMETRY)
|
||||||
DEBUG_SET(DEBUG_VTX_MSP, 3, isCrsfPortConfig(portConfig) ? getMspTelemetryDescriptor() : getMspSerialPortDescriptor(mspVtxPortIdentifier));
|
DEBUG_SET(DEBUG_VTX_MSP, 3, isCrsfPortConfig(portConfig) ? getMspTelemetryDescriptor() : getMspSerialPortDescriptor(mspVtxPortIdentifier));
|
||||||
|
#else
|
||||||
|
DEBUG_SET(DEBUG_VTX_MSP, 3, getMspSerialPortDescriptor(mspVtxPortIdentifier));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static vtxDevType_e vtxMspGetDeviceType(const vtxDevice_t *vtxDevice)
|
static vtxDevType_e vtxMspGetDeviceType(const vtxDevice_t *vtxDevice)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue