1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Removed vtx_settings_config in favor of vtx_common. Removed implicit EEPROM writes for vtx_ changes.

Updated MSP_VTX_CONFIG

Updated MSP_SET_VTX_CONFIG

Updated MSP_VTX_CONFIG (again)

Implemented VTX update schedule

Removed unneeded initialization blocks from io/vtx implementations

Prevent VTX settings from being applied in CLI. Sync Band/Chan/Freq on init

Correct issues in SA CMS

Moved vtxCommonInit and vtxCommonProcess to io/vtx
This commit is contained in:
Unknown 2017-11-01 01:27:29 -04:00 committed by Curtis Bangert
parent c497b44b83
commit d9caabefa1
22 changed files with 419 additions and 548 deletions

View file

@ -29,10 +29,13 @@
#include "cms/cms.h"
#include "cms/cms_types.h"
#include "drivers/vtx_common.h"
#include "fc/config.h"
#include "io/vtx_string.h"
#include "io/vtx_tramp.h"
#include "io/vtx_settings_config.h"
#include "io/vtx.h"
char trampCmsStatusString[31] = "- -- ---- ----";
// m bc ffff tppp
@ -154,7 +157,12 @@ static long trampCmsCommence(displayPort_t *pDisp, const void *self)
trampCommitChanges();
// update'vtx_' settings
vtxSettingsSaveBandChanAndPower(trampCmsBand, trampCmsChan, trampCmsPower);
vtxSettingsConfigMutable()->band = trampCmsBand;
vtxSettingsConfigMutable()->channel = trampCmsChan;
vtxSettingsConfigMutable()->power = trampCmsPower;
vtxSettingsConfigMutable()->freq = vtx58_Bandchan2Freq(trampCmsBand, trampCmsChan);
saveConfigAndNotify();
return MENU_CHAIN_BACK;
}