1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Update cms status string during processing

This commit is contained in:
phobos- 2022-07-06 16:54:59 +02:00
parent f10413392b
commit 9d70ed5079
2 changed files with 10 additions and 0 deletions

View file

@ -32,6 +32,7 @@
#include "build/debug.h"
#include "cms/cms_menu_vtx_msp.h"
#include "common/crc.h"
#include "config/feature.h"
@ -170,6 +171,9 @@ static void vtxMspProcess(vtxDevice_t *vtxDevice, timeUs_t currentTimeUs)
switch (mspVtxStatus) {
case MSP_VTX_STATUS_OFFLINE:
// wait for MSP communication from the VTX
#ifdef USE_CMS
mspCmsUpdateStatusString();
#endif
break;
case MSP_VTX_STATUS_READY:
if (isLowPowerDisarmed() != prevLowPowerDisarmedState) {
@ -190,6 +194,10 @@ static void vtxMspProcess(vtxDevice_t *vtxDevice, timeUs_t currentTimeUs)
packetCounter++;
mspVtxLastTimeUs = currentTimeUs;
mspVtxConfigChanged = false;
#ifdef USE_CMS
mspCmsUpdateStatusString();
#endif
}
break;
default:

View file

@ -111,4 +111,6 @@ extern "C" {
mspDescriptor_t getMspSerialPortDescriptor(const uint8_t ) {return 0;}
mspDescriptor_t getMspTelemetryDescriptor(void) {return 0;}
void mspCmsUpdateStatusString(void) {}
}