From 0cb603b0a43348cb09af64904448071aff272018 Mon Sep 17 00:00:00 2001
From: Jonathan Redpath <legoboyvdlp@gmail.com>
Date: Sun, 30 Sep 2018 18:49:24 +0100
Subject: [PATCH] Fix pack fault messages

---
 Nasal/ECAM-controller.nas | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Nasal/ECAM-controller.nas b/Nasal/ECAM-controller.nas
index 81ce3a3f..50a743b4 100644
--- a/Nasal/ECAM-controller.nas
+++ b/Nasal/ECAM-controller.nas
@@ -189,24 +189,28 @@ var messages_priority_2 = func {
 		pack1_fault.active = 1;
 	} else {
 		pack1_fault.active = 0;
+		pack1_fault.noRepeat = 0;
 	}
 	
 	if (pack1_fault.active == 1 and getprop("/controls/pneumatic/switches/pack1") == 1) {
 		pack1_fault_subwarn_1.active = 1;
 	} else {
 		pack1_fault_subwarn_1.active = 0;
+		pack1_fault_subwarn_1.noRepeat = 0;
 	}
 	
 	if ((((getprop("/FMGC/status/phase") >= 1 and getprop("/FMGC/status/phase") <= 2) or (getprop("/FMGC/status/phase") >= 9 and getprop("/FMGC/status/phase") <= 10) and (wow and getprop("/engines/engine[1]/state") == 3)) or getprop("/FMGC/status/phase") == 6) and getprop("/systems/failures/pack2") == 1) {
 		pack2_fault.active = 1;
 	} else {
 		pack2_fault.active = 0;
+		pack2_fault.noRepeat = 0;
 	}
 	
 	if (pack2_fault.active == 1 and getprop("/controls/pneumatic/switches/pack2") == 1) {
 		pack2_fault_subwarn_1.active = 1;
 	} else {
 		pack2_fault_subwarn_1.active = 0;
+		pack2_fault_subwarn_1.noRepeat = 0;
 	}
 	
 	# if (getprop("/controls/gear/brake-parking") and (getprop("/FMGC/status/phase") >= 6 and getprop("/FMGC/status/phase") <= 7)) {