From 46ce32e719264a2297ec73b8a5fc0c3fc6e009b5 Mon Sep 17 00:00:00 2001 From: Anders Hoglund Date: Sun, 25 Feb 2018 20:27:08 +0100 Subject: [PATCH] VTX common, Revert power index change made in PR 4879r. --- src/main/drivers/vtx_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/drivers/vtx_common.c b/src/main/drivers/vtx_common.c index baee0aed7..f906b8e05 100644 --- a/src/main/drivers/vtx_common.c +++ b/src/main/drivers/vtx_common.c @@ -72,7 +72,7 @@ void vtxCommonSetBandAndChannel(vtxDevice_t *vtxDevice, uint8_t band, uint8_t ch // index is zero origin, zero = power off completely void vtxCommonSetPowerByIndex(vtxDevice_t *vtxDevice, uint8_t index) { - if (index < vtxDevice->capability.powerCount) { + if (index <= vtxDevice->capability.powerCount) { vtxDevice->vTable->setPowerByIndex(vtxDevice, index); } }