Updated DualControl: Added missing var keywords.
This commit is contained in:
parent
3fcd0968bb
commit
b5424296d5
2 changed files with 9 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue