Skip to content

Commit

Permalink
Merge pull request #1822 from iNavFlight/mmosca-smarter-pwm-assignment
Browse files Browse the repository at this point in the history
Fixes servo display in mixer tab for MC #1821
  • Loading branch information
mmosca committed Sep 10, 2023
2 parents dae2b82 + ac1cc38 commit 6900ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/outputMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let OutputMappingCollection = function () {
timerMap[i] = null;

if (isMR) {
if (servosToGo > 0 && bit_check(data[i], TIM_USE_MC_SERVO)) {
if (servosToGo > 0 && bit_check(data[i]['usageFlags'], TIM_USE_MC_SERVO)) {
servosToGo--;
timerMap[i] = OUTPUT_TYPE_SERVO;
} else if (motorsToGo > 0 && bit_check(data[i]['usageFlags'], TIM_USE_MC_MOTOR)) {
Expand Down

0 comments on commit 6900ed5

Please sign in to comment.