summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--freq2lmx2487settings.lua12
1 files changed, 12 insertions, 0 deletions
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( )