diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml
index 9e3a3e04..1b00c24a 100644
--- a/Models/FlightDeck/a320.flightdeck.xml
+++ b/Models/FlightDeck/a320.flightdeck.xml
@@ -1521,7 +1521,39 @@
- knob
+ slider
+ CockpitDoorSwitch
+ CockpitDoorSwitch.mark
+ controls/doors/doorc-switch
+ vertical
+
+
+ property-adjust
+ controls/doors/doorc-switch
+ -1
+ -1
+ 1
+ 0
+
+
+
+
+ property-assign
+ controls/doors/doorc-switch
+ 0
+
+
+
+
+ set-tooltip
+ doorc-switch-lock
+
+
+
+
+
+
+ rotate
CockpitDoorSwitch
CockpitDoorSwitch.mark
controls/doors/doorc-switch
@@ -1533,38 +1565,6 @@
CockpitDoorSwitch.axis
-
-
- property-cycle
- controls/doors/doorc-switch
- -1
- 0
- 1
- false
-
-
- nasal
-
-
-
-
-
- property-assign
- controls/doors/doorc-switch
- 0
-
-
- nasal
-
-
-
-
-
- set-tooltip
- doorc-switch-lock
-
-
-
diff --git a/Nasal/Libraries/libraries.nas b/Nasal/Libraries/libraries.nas
index d3c089d6..fbe52f13 100644
--- a/Nasal/Libraries/libraries.nas
+++ b/Nasal/Libraries/libraries.nas
@@ -84,6 +84,7 @@ var triggerDoor = func(door, doorName, doorDesc) {
};
setlistener("/controls/doors/doorc-switch",func(a){
+ setprop("sim/sounde/switch1", 1);
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");
@@ -95,11 +96,11 @@ setlistener("/controls/doors/doorc-switch",func(a){
else if (pos == -1 and current == 1) { ## UNLOCK
settimer( func {
if (a.getValue() == pos) setprop("/sim/model/door-positions/doorc/lock-status",0);
- },0.2);
+ },0.3);
}
#setprop("/sim/model/door-positions/doorc/lock-status",-9); ## FAULT
}
-});
+},0,0);
###########
# Systems #