diff options
-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 |