Skip to content

Commit

Permalink
Fix for mixer tab not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mmosca committed May 28, 2024
1 parent c7dfab9 commit efb0492
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 efb0492

Please sign in to comment.