diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-05-31 15:42:03 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-05-31 15:42:03 -0400 |
commit | 0bbf887ec533c4537920934667ff3baa538d994c (patch) | |
tree | 873f2f31ee3fa0f7111e625dd28fb069e5aca6f7 /lmx2487lib.lua | |
parent | 022c9b6b1eee8538af43ecb8a13219d0403832d2 (diff) | |
download | nodeMCU_rf_source_lmx2487-0bbf887ec533c4537920934667ff3baa538d994c.tar.gz nodeMCU_rf_source_lmx2487-0bbf887ec533c4537920934667ff3baa538d994c.zip |
added getFreq() function
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 + |