mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Merge pull request #4455 from codecae/vtx_settings_pg_rework
Move vtxSettingsConfig to vtx_common. Rework MSP_SET_VTX_CONFIG and CMS.
This commit is contained in:
commit
39727ce384
22 changed files with 418 additions and 547 deletions
|
@ -63,6 +63,7 @@
|
|||
#include "io/transponder_ir.h"
|
||||
#include "io/vtx_tramp.h" // Will be gone
|
||||
#include "io/rcdevice_cam.h"
|
||||
#include "io/vtx.h"
|
||||
|
||||
#include "msp/msp_serial.h"
|
||||
|
||||
|
@ -209,13 +210,13 @@ static void taskTelemetry(timeUs_t currentTimeUs)
|
|||
|
||||
#ifdef VTX_CONTROL
|
||||
// Everything that listens to VTX devices
|
||||
void taskVtxControl(uint32_t currentTime)
|
||||
void taskVtxControl(timeUs_t currentTime)
|
||||
{
|
||||
if (ARMING_FLAG(ARMED))
|
||||
if (ARMING_FLAG(ARMED) || cliMode)
|
||||
return;
|
||||
|
||||
#ifdef VTX_COMMON
|
||||
vtxCommonProcess(currentTime);
|
||||
vtxProcess(currentTime);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue