From ca62307d0924053a04f5bbc82c1e44757d6bec54 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Mon, 11 Mar 2019 17:11:06 +0000 Subject: [PATCH] Add sub-message to new() parameter as an optional argument --- Nasal/ECAM/ECAM-controller.nas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Nasal/ECAM/ECAM-controller.nas b/Nasal/ECAM/ECAM-controller.nas index ab8dc525..3a59218c 100644 --- a/Nasal/ECAM/ECAM-controller.nas +++ b/Nasal/ECAM/ECAM-controller.nas @@ -26,7 +26,7 @@ var rightLineIndex = 0; var statusIndex = 0; var warning = { - new: func(msg,colour,aural,light) { + new: func(msg,colour,aural,light,hasSubmsg = 0,lastSubmsg = 0) { var t = {parents:[warning]}; t.msg = msg; @@ -36,6 +36,8 @@ var warning = { t.light = light; t.noRepeat = 0; t.clearFlag = 0; + t.hasSubmsg = hasSubmsg; + t.lastSubmsg = lastSubmsg; return t },