From e69ae365c2a2ea7cc8f6069103ce91eb439617b3 Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Fri, 8 Jun 2018 17:08:17 +0100 Subject: [PATCH] messages show on ECAM now, but wrong --- Nasal/ECAM-controller.nas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Nasal/ECAM-controller.nas b/Nasal/ECAM-controller.nas index 3d8d022d..016147f1 100644 --- a/Nasal/ECAM-controller.nas +++ b/Nasal/ECAM-controller.nas @@ -113,12 +113,13 @@ var ECAM_controller = { # write to ECAM foreach(var ewd_messages; active_messages.vector) { var i = 1; - var x = getprop("/ECAM/msg/line[" ~ i ~ "]"); + var x = getprop("/ECAM/msg/line" ~ i); print("Variable i is:" ~ i); if (x == "") { - setprop("/ECAM/msg/line[" ~ i ~ "]", ewd_messages); + setprop("/ECAM/msg/line" ~ i, ewd_messages); } else { i = i + 1; + setprop("/ECAM/msg/line" ~ i, ewd_messages); print("Variable i is:" ~ i); } }