Fix Horus wiazrd when 'no motor' is choosen

This commit is contained in:
3djc
2019-01-08 16:36:18 +01:00
parent d363f957f5
commit fd7f839342
2 changed files with 2 additions and 2 deletions
@@ -355,7 +355,7 @@ local function runConfigSummary(event)
-- motors
if(MotorFields[1][5] == 1) then
drawNextLine("Motor chan :", MotorFields[2][5])
elseif (MotorFields[2][5] == 2) then
elseif (MotorFields[1][5] == 2) then
drawNextLine("Motor 1 chan :", MotorFields[2][5])
drawNextLine("Motor 2 chan :", MotorFields[3][5])
end
@@ -355,7 +355,7 @@ local function runConfigSummary(event)
-- motors
if(MotorFields[1][5] == 1) then
drawNextLine("Motor chan :", MotorFields[2][5])
elseif (MotorFields[2][5] == 2) then
elseif (MotorFields[1][5] == 2) then
drawNextLine("Motor 1 chan :", MotorFields[2][5])
drawNextLine("Motor 2 chan :", MotorFields[3][5])
end