Showing 1 changed files with 2 additions and 1 deletions
+2 -1
Nasal/afcs.nas
... ...
@@ -326,7 +326,8 @@ var APClass = {
326 326
             updateDisplay: func {
327 327
                 var latmod = latmod_armed = vertmod = vertmod_armed = "";
328 328
                 var vertmod_target = 0;
329
-                var ap_enabled = kap140.lockRollMode.getValue() != kap140.rollModes["OFF"] or kap140.lockPitchMode.getValue() == kap140.pitchModes["OFF"]
329
+                var ap_enabled = kap140.lockRollMode.getValue() != kap140.rollModes["OFF"]
330
+                              or kap140.lockPitchMode.getValue() != kap140.pitchModes["OFF"];
330 331
 
331 332
                 if (ap_enabled) {
332 333
                     foreach (var mode; keys(kap140.rollModes))