From 8890a073b95f259deef288f142b7cea780b6e751 Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Fri, 7 Jan 2022 18:43:09 +0000 Subject: [PATCH] use correct nodes for elec --- Nasal/Libraries/libraries.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/Libraries/libraries.nas b/Nasal/Libraries/libraries.nas index 87c78923..d3c089d6 100644 --- a/Nasal/Libraries/libraries.nas +++ b/Nasal/Libraries/libraries.nas @@ -84,7 +84,7 @@ var triggerDoor = func(door, doorName, doorDesc) { }; setlistener("/controls/doors/doorc-switch",func(a){ - if (getprop("systems/electrical/bus/dc-2")>25 or getprop("systems/electrical/bus/dc-1")>25) { + if (systems.ELEC.Bus.dc1.getValue() > 25 or systems.ELEC.Bus.dc2.getValue() > 25) { var pos = a.getValue(); var current = getprop("/sim/model/door-positions/doorc/lock-status"); if (pos == 1 and current == 0) { ## LOCK