1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

Merge pull request #4444 from ethomas999/etVtxFreqViaMspTrampFix

Fix saving vtx_tramp power to 'vtx_power' setting
This commit is contained in:
Michael Keller 2017-10-26 19:56:00 +13:00 committed by GitHub
commit 8f39eab1b7
2 changed files with 3 additions and 1 deletions

View file

@ -153,6 +153,8 @@ static long trampCmsCommence(displayPort_t *pDisp, const void *self)
// If it fails, the user should retry later
trampCommitChanges();
// update'vtx_' settings
vtxSettingsSaveBandChanAndPower(trampCmsBand, trampCmsChan, trampCmsPower);
return MENU_CHAIN_BACK;
}

View file

@ -172,7 +172,6 @@ void trampSetBandAndChannel(uint8_t band, uint8_t channel)
{
trampSetByFreqFlag = false; //set freq via band/channel
trampDevSetBandAndChannel(band, channel);
vtxSettingsSaveBandAndChannel(band, channel);
}
void trampSetRFPower(uint16_t level)
@ -545,6 +544,7 @@ void vtxTrampSetBandAndChannel(uint8_t band, uint8_t channel)
if (trampValidateBandAndChannel(band, channel)) {
trampSetBandAndChannel(band, channel);
trampCommitChanges();
vtxSettingsSaveBandAndChannel(band, channel);
}
}