From 9fbe8efa063c5dcd379348ba5b4a858036c92978 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 10 Jun 2021 19:38:27 -0400 Subject: added test for freq2regestersValues --- freq2lmx2487settings.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/freq2lmx2487settings.lua b/freq2lmx2487settings.lua index 943576f..6eb2588 100644 --- a/freq2lmx2487settings.lua +++ b/freq2lmx2487settings.lua @@ -18,6 +18,18 @@ function freq2regestersValues(freq) return freq, RF_N, RF_FN, RF_FD end +-- test freq2regestersValues +fIn = 6.834e9 +freq, RF_N, RF_FN, RF_FD = freq2regestersValues(fIn) +if freq ~= fIn and RF_N ~= 1366 and RF_FN ~= 3200000 and 4000000 then + print("ERROR in freq2regestersValues") +end +fIn=nil +freq=nil +RF_N=nil +RF_FN=nil +RF_FD=nil +-- end of freq2regestersValues test ------ INITIAL SETTINGS (send to chip)------- function initSettings( ) -- cgit v1.2.3