diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-11 11:24:44 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-11 11:24:44 -0400 |
commit | 16497738fcaa16f68dae6b531bd693f8c69f22f4 (patch) | |
tree | 12c0bc7ccffbe9b917ece70e11f1462341672d4e /lmx2487lib.lua | |
parent | d44eee44c5ec2ff571117a563ae50f8e829f659d (diff) | |
download | nodeMCU_rf_source_lmx2487-16497738fcaa16f68dae6b531bd693f8c69f22f4.tar.gz nodeMCU_rf_source_lmx2487-16497738fcaa16f68dae6b531bd693f8c69f22f4.zip |
test case message fixed
Diffstat (limited to 'lmx2487lib.lua')
-rw-r--r-- | lmx2487lib.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lmx2487lib.lua b/lmx2487lib.lua index c01da6e..4a0e48c 100644 --- a/lmx2487lib.lua +++ b/lmx2487lib.lua @@ -124,7 +124,7 @@ if and get_lmx2487register(2) ~= 8560613 -- should not change and get_lmx2487register(5) ~= 16003291 then - print("ERROR in setFreq: registers do not match") + print("ERROR in FreqToSettingsBin: registers do not match") end FreqToSettingsBin(6.8204e9) if @@ -133,7 +133,7 @@ if and get_lmx2487register(2) ~= 8560613 -- should not change and get_lmx2487register(5) ~= 15992043 then - print("ERROR in setFreq: registers do not match") + print("ERROR in FreqToSettingsBin: registers do not match") end FreqToSettingsBin(6.8346e9) if @@ -142,6 +142,11 @@ if and get_lmx2487register(2) ~= 8560613 -- should not change and get_lmx2487register(5) ~= 16005163 then - print("ERROR in setFreq: registers do not match") + print("ERROR in FreqToSettingsBin: registers do not match") +end + +function setFreq(freq) + FreqToSettingsBin(freq) + update_lmx2487state() end |