From 01c166626e09b455214f755f62c734749c263cfe Mon Sep 17 00:00:00 2001 From: Geoff Sim Date: Thu, 10 Oct 2024 16:20:08 +0100 Subject: [PATCH] Adjust if/else syntax --- js/vtx.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/vtx.js b/js/vtx.js index ffa6f7dee..acb6efc32 100644 --- a/js/vtx.js +++ b/js/vtx.js @@ -30,7 +30,8 @@ var VTX = (function() { self.getMaxPower = function(vtxDev) { if ((vtxDev == self.DEV_SMARTAUDIO) || (vtxDev == self.DEV_TRAMP)) { return 5; - } else if (vtxDev == self.DEV_MSP) { + } + if (vtxDev == self.DEV_MSP) { return 4; } return 3;