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

Fixed saving vtx_tramp power to 'vtx_power' setting

In vtx_tramp.c 'trampSetBandAndChannel()' removed call to 'vtxSettingsSaveBandAndChannel()'

In vtx_tramp.c 'vtxTrampSetBandAndChannel()' added call to 'vtxSettingsSaveBandAndChannel()'

In cms_menu_vtx_tramp.c 'trampCmsCommence()' added call to 'vtxSettingsSaveBandChanAndPower()'
This commit is contained in:
ethomas999 2017-10-26 00:39:11 -04:00
parent 6626995047
commit ff48fae9b8
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 // If it fails, the user should retry later
trampCommitChanges(); trampCommitChanges();
// update'vtx_' settings
vtxSettingsSaveBandChanAndPower(trampCmsBand, trampCmsChan, trampCmsPower);
return MENU_CHAIN_BACK; 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 trampSetByFreqFlag = false; //set freq via band/channel
trampDevSetBandAndChannel(band, channel); trampDevSetBandAndChannel(band, channel);
vtxSettingsSaveBandAndChannel(band, channel);
} }
void trampSetRFPower(uint16_t level) void trampSetRFPower(uint16_t level)
@ -545,6 +544,7 @@ void vtxTrampSetBandAndChannel(uint8_t band, uint8_t channel)
if (trampValidateBandAndChannel(band, channel)) { if (trampValidateBandAndChannel(band, channel)) {
trampSetBandAndChannel(band, channel); trampSetBandAndChannel(band, channel);
trampCommitChanges(); trampCommitChanges();
vtxSettingsSaveBandAndChannel(band, channel);
} }
} }