diff options
Diffstat (limited to 'lmx2487lib.lua')
-rw-r--r-- | lmx2487lib.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lmx2487lib.lua b/lmx2487lib.lua index 42f94be..860102b 100644 --- a/lmx2487lib.lua +++ b/lmx2487lib.lua @@ -8,6 +8,7 @@ Eugeniy Mikhailov lmx2487_registers = {0, 0, 0, 0, 0, 0, 0, 0} -- if a register needs update set to true, updater script will resend this register lmx2487_need_update = {true, true, true, true, true, true, true, true} +freqVal = nil function set_lmx2487register(value, register) -- register labeled 0, 1, 2, ..., 7 @@ -171,7 +172,13 @@ then end function setFreq(freq) + freqVal = freq FreqToSettings(freq) update_lmx2487state() end +function getFreq() + print(freqVal) + return(freqVal) +end + |