From 16497738fcaa16f68dae6b531bd693f8c69f22f4 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Fri, 11 Jun 2021 11:24:44 -0400 Subject: test case message fixed --- lmx2487lib.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lmx2487lib.lua') 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 -- cgit v1.2.3