From b2968a07a8e2cb2fab93bc7c7cbc65b23a023d0c Mon Sep 17 00:00:00 2001 From: Patrick Leiser Date: Wed, 16 Oct 2024 00:53:06 -0700 Subject: [PATCH] minor optimization since same check is done in for loop above --- src/js/tabs/motors.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/tabs/motors.js b/src/js/tabs/motors.js index 48d8c3886b..f98294be6b 100644 --- a/src/js/tabs/motors.js +++ b/src/js/tabs/motors.js @@ -408,9 +408,7 @@ motors.initialize = async function (callback) { } } //if every item in the motor array (current size limit: 8) is populated, we have that many motors - if(FC.MOTOR_DATA[FC.MOTOR_DATA.length-1]!=0){ - self.numberOfValidOutputs = FC.MOTOR_DATA.length; - } + self.numberOfValidOutputs = FC.MOTOR_DATA.length; }); }