From b5424296d54d683edc05bcc17c1fbfded3886d43 Mon Sep 17 00:00:00 2001 From: Anders Gidenstam Date: Mon, 11 Jul 2011 20:22:26 +0200 Subject: [PATCH] Updated DualControl: Added missing var keywords. --- Aircraft/Generic/DualControl/Instruments/KR87/kr87.nas | 8 ++++---- .../Generic/DualControl/Instruments/KX165/kx165tso.nas | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Aircraft/Generic/DualControl/Instruments/KR87/kr87.nas b/Aircraft/Generic/DualControl/Instruments/KR87/kr87.nas index 5ff2f485b..968f75eb8 100644 --- a/Aircraft/Generic/DualControl/Instruments/KR87/kr87.nas +++ b/Aircraft/Generic/DualControl/Instruments/KR87/kr87.nas @@ -3,7 +3,7 @@ ## Nasal for dual control of a KR-87 ADF radio over the multiplayer ## network. ## -## Copyright (C) 2007 - 2010 Anders Gidenstam (anders(at)gidenstam.org) +## Copyright (C) 2007 - 2011 Anders Gidenstam (anders(at)gidenstam.org) ## This file is licensed under the GPL license version 2 or later. ## ############################################################################### @@ -116,21 +116,21 @@ var kr87 = [master_kr87.new(0), master_kr87.new(1)]; ########################################################################### # n - ADF# -swap = func(n) { +var swap = func(n) { kr87[n].swap(); } ########################################################################### # n - ADF# # d - adjustment -adjust_frequency = func(n, d) { +var adjust_frequency = func(n, d) { kr87[n].adjust_frequency(d); } ########################################################################### # n - ADF# # p - pressed -toggle_BFO = func(n) { +var toggle_BFO = func(n) { kr87[n].toggle_BFO(); } diff --git a/Aircraft/Generic/DualControl/Instruments/KX165/kx165tso.nas b/Aircraft/Generic/DualControl/Instruments/KX165/kx165tso.nas index 82fa04478..659cb521a 100644 --- a/Aircraft/Generic/DualControl/Instruments/KX165/kx165tso.nas +++ b/Aircraft/Generic/DualControl/Instruments/KX165/kx165tso.nas @@ -3,7 +3,7 @@ ## Nasal for dual control of a KX165 NavComm radio over the multiplayer ## network. ## -## Copyright (C) 2007 - 2010 Anders Gidenstam (anders(at)gidenstam.org) +## Copyright (C) 2007 - 2011 Anders Gidenstam (anders(at)gidenstam.org) ## This file is licensed under the GPL license version 2 or later. ## ############################################################################### @@ -150,13 +150,13 @@ var make_slave_to = func(n, airoot) { ########################################################################### # n - NavComm# -swap_nav = func(n) { +var swap_nav = func(n) { kx165tso[n].swap_nav(); } ########################################################################### # n - NavComm# -swap_comm = func(n, b) { +var swap_comm = func(n, b) { kx165tso[n].comm_base.getNode(swap_btn, 1).setValue(b); if (b) kx165tso[n].swap_comm(); } @@ -164,14 +164,14 @@ swap_comm = func(n, b) { ########################################################################### # n - NavComm# # d - adjustment -adjust_nav_frequency = func(n, d) { +var adjust_nav_frequency = func(n, d) { kx165tso[n].adjust_nav_frequency(d); } ########################################################################### # n - NavComm# # d - adjustment -adjust_comm_frequency = func(n, d) { +var adjust_comm_frequency = func(n, d) { kx165tso[n].adjust_comm_frequency(d); }