mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Update cms status string during processing
This commit is contained in:
parent
f10413392b
commit
9d70ed5079
2 changed files with 10 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
||||||
|
|
||||||
#include "build/debug.h"
|
#include "build/debug.h"
|
||||||
|
|
||||||
|
#include "cms/cms_menu_vtx_msp.h"
|
||||||
#include "common/crc.h"
|
#include "common/crc.h"
|
||||||
#include "config/feature.h"
|
#include "config/feature.h"
|
||||||
|
|
||||||
|
@ -170,6 +171,9 @@ static void vtxMspProcess(vtxDevice_t *vtxDevice, timeUs_t currentTimeUs)
|
||||||
switch (mspVtxStatus) {
|
switch (mspVtxStatus) {
|
||||||
case MSP_VTX_STATUS_OFFLINE:
|
case MSP_VTX_STATUS_OFFLINE:
|
||||||
// wait for MSP communication from the VTX
|
// wait for MSP communication from the VTX
|
||||||
|
#ifdef USE_CMS
|
||||||
|
mspCmsUpdateStatusString();
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case MSP_VTX_STATUS_READY:
|
case MSP_VTX_STATUS_READY:
|
||||||
if (isLowPowerDisarmed() != prevLowPowerDisarmedState) {
|
if (isLowPowerDisarmed() != prevLowPowerDisarmedState) {
|
||||||
|
@ -190,6 +194,10 @@ static void vtxMspProcess(vtxDevice_t *vtxDevice, timeUs_t currentTimeUs)
|
||||||
packetCounter++;
|
packetCounter++;
|
||||||
mspVtxLastTimeUs = currentTimeUs;
|
mspVtxLastTimeUs = currentTimeUs;
|
||||||
mspVtxConfigChanged = false;
|
mspVtxConfigChanged = false;
|
||||||
|
|
||||||
|
#ifdef USE_CMS
|
||||||
|
mspCmsUpdateStatusString();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -111,4 +111,6 @@ extern "C" {
|
||||||
|
|
||||||
mspDescriptor_t getMspSerialPortDescriptor(const uint8_t ) {return 0;}
|
mspDescriptor_t getMspSerialPortDescriptor(const uint8_t ) {return 0;}
|
||||||
mspDescriptor_t getMspTelemetryDescriptor(void) {return 0;}
|
mspDescriptor_t getMspTelemetryDescriptor(void) {return 0;}
|
||||||
|
|
||||||
|
void mspCmsUpdateStatusString(void) {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue