mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 05:45:31 +03:00
Merge pull request #4444 from ethomas999/etVtxFreqViaMspTrampFix
Fix saving vtx_tramp power to 'vtx_power' setting
This commit is contained in:
commit
8f39eab1b7
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue