Skip to content

Commit

Permalink
minor optimization since same check is done in for loop above
Browse files Browse the repository at this point in the history
  • Loading branch information
Patronics committed Oct 16, 2024
1 parent 7ce2426 commit b2968a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/js/tabs/motors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}

Expand Down

0 comments on commit b2968a0

Please sign in to comment.