Skip to content

Commit

Permalink
Fix Horus wiazrd when 'no motor' is choosen (continued)
Browse files Browse the repository at this point in the history
  • Loading branch information
3djc committed Jan 8, 2019
1 parent 0385809 commit c1681e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion radio/sdcard/horus/SCRIPTS/WIZARD/glider/wizard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ local function createModel(event)
-- motor
if(MotorFields[1][5] == 1) then
addMix(MotorFields[2][5], MIXSRC_FIRST_INPUT+defaultChannel(2), "Motor")
elseif (MotorFields[2][5] == 2) then
elseif (MotorFields[1][5] == 2) then
addMix(MotorFields[2][5], MIXSRC_FIRST_INPUT+defaultChannel(2), "Motor1")
addMix(MotorFields[3][5], MIXSRC_FIRST_INPUT+defaultChannel(2), "Motor2")
end
Expand Down
2 changes: 1 addition & 1 deletion radio/sdcard/horus/SCRIPTS/WIZARD/plane/wizard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ local function createModel(event)
-- motor
if(MotorFields[1][5] == 1) then
addMix(MotorFields[2][5], MIXSRC_FIRST_INPUT+defaultChannel(2), "Motor")
elseif (MotorFields[2][5] == 2) then
elseif (MotorFields[1][5] == 2) then
addMix(MotorFields[2][5], MIXSRC_FIRST_INPUT+defaultChannel(2), "Motor1")
addMix(MotorFields[3][5], MIXSRC_FIRST_INPUT+defaultChannel(2), "Motor2")
end
Expand Down

0 comments on commit c1681e0

Please sign in to comment.