From 318508fb4e66184c78e4e8458320a89daf6664e0 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Mon, 1 Jan 2018 10:11:46 -0500 Subject: [PATCH] A32X: Fix GPWS inhibit not working #122 --- Nasal/libraries.nas | 6 ++++++ revision.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Nasal/libraries.nas b/Nasal/libraries.nas index 93f5d798..30a9f721 100644 --- a/Nasal/libraries.nas +++ b/Nasal/libraries.nas @@ -226,6 +226,12 @@ var systemsLoop = maketimer(0.1, func { } else { setprop("/instrumentation/mk-viii/inputs/discretes/momentary-flap-override", 0); } + + if (getprop("/instrumentation/mk-viii/inputs/discretes/gpws-inhibit") == 1) { + setprop("/instrumentation/mk-viii/speaker/volume", 0); + } else { + setprop("/instrumentation/mk-viii/speaker/volume", 2); + } }); setlistener("/options/steep-ils", func { diff --git a/revision.txt b/revision.txt index 75a03b53..e0e9ecdf 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4215 \ No newline at end of file +4216 \ No newline at end of file