Revert Tramp power max check when setting power (#8907)

Revert Tramp power max check when setting power
This commit is contained in:
Michael Keller 2019-09-20 07:50:18 +12:00 committed by GitHub
commit bcc699df87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ static void vtxTrampSetBandAndChannel(vtxDevice_t *vtxDevice, uint8_t band, uint
static void vtxTrampSetPowerByIndex(vtxDevice_t *vtxDevice, uint8_t index) static void vtxTrampSetPowerByIndex(vtxDevice_t *vtxDevice, uint8_t index)
{ {
uint16_t powerValue = 0; uint16_t powerValue = 0;
if (vtxCommonLookupPowerValue(vtxDevice, index, &powerValue) && (trampRFPowerMax == 0 || powerValue <= trampRFPowerMax)) { if (vtxCommonLookupPowerValue(vtxDevice, index, &powerValue)) {
trampSetRFPower(powerValue); trampSetRFPower(powerValue);
trampCommitChanges(); trampCommitChanges();
} }