Skip to content

Commit

Permalink
Merge pull request #2101 from iNavFlight/mmosca-mixer-fix
Browse files Browse the repository at this point in the history
Fix for mixer tab not loading
  • Loading branch information
mmosca authored May 28, 2024
2 parents c7dfab9 + efb0492 commit 81b5021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabs/mixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ TABS.mixer.initialize = function (callback, scrollPosition) {

const updateMotorDirection = function () {
let motorDirectionCheckbox = $('input[name=motor_direction_inverted]:checked');
const isReversed = motorDirectionCheckbox.val() == 1 && (MIXER_CONFIG.platformType == PLATFORM_MULTIROTOR || MIXER_CONFIG.platformType == PLATFORM_TRICOPTER);
const isReversed = motorDirectionCheckbox.val() == 1 && (FC.MIXER_CONFIG.platformType == PLATFORM.MULTIROTOR || FC.MIXER_CONFIG.platformType == PLATFORM.TRICOPTER);

const path = './resources/motor_order/'
+ currentMixerPreset.image + (isReversed ? "_reverse" : "") + '.svg';
Expand Down

0 comments on commit 81b5021

Please sign in to comment.