summaryrefslogtreecommitdiff
path: root/freq2lmx2487settings.lua
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-10 19:38:27 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-10 19:38:27 -0400
commit9fbe8efa063c5dcd379348ba5b4a858036c92978 (patch)
tree06b1478f28a68b55711970285747e458975c4aab /freq2lmx2487settings.lua
parent9a923b8f2b7c288400e9242dccea7c845f56354c (diff)
downloadnodeMCU_rf_source_lmx2487-9fbe8efa063c5dcd379348ba5b4a858036c92978.tar.gz
nodeMCU_rf_source_lmx2487-9fbe8efa063c5dcd379348ba5b4a858036c92978.zip
added test for freq2regestersValues
Diffstat (limited to 'freq2lmx2487settings.lua')
-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( )