From 5476f52540fc2b9cd022bb93e4e5078eb9a125d4 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Sat, 18 Nov 2017 13:31:40 -0500 Subject: [PATCH] A3XX: Fix error in brakes.nas --- Nasal/brakes.nas | 3 +-- revision.txt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Nasal/brakes.nas b/Nasal/brakes.nas index ba9e075f..9406609f 100644 --- a/Nasal/brakes.nas +++ b/Nasal/brakes.nas @@ -25,8 +25,7 @@ var autobrake_init = func { # Override FG's generic brake, so we can use toe brakes to disconnect autobrake controls.applyBrakes = func(v, which = 0) { if (getprop("/systems/acconfig/autoconfig-running") != 1) { - wow1 = getprop("/gear/gear[1]/wow"); - wow2 = getprop("/gear/gear[2]/wow"); + wow0 = getprop("/gear/gear[0]/wow"); if (getprop("/controls/autobrake/mode") != 0 and wow0 == 1 and getprop("/controls/autobrake/active") == 1) { arm_autobrake(0); } diff --git a/revision.txt b/revision.txt index d41aa517..4270c429 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4013 \ No newline at end of file +4014 \ No newline at end of file