Skip to content

Commit

Permalink
Fix handling of custom configuration with 8 motors
Browse files Browse the repository at this point in the history
Resolves issue #4212
  • Loading branch information
Patronics committed Oct 16, 2024
1 parent 9816ea5 commit 7ce2426
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/tabs/motors.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ motors.initialize = async function (callback) {
return;
}
}
//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;
}
});
}

Expand Down

0 comments on commit 7ce2426

Please sign in to comment.