diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-10 22:08:30 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-10 22:08:30 -0400 |
commit | 485578082ce69a488da7c799900eb1c26c28ad94 (patch) | |
tree | b0ce7d9ad6aa1292868dd432d988ae2cf3da2b26 | |
parent | 97ce2148eb3b65e4cfa69321497d8977f2e3cee6 (diff) | |
download | nodeMCU_rf_source_lmx2487-485578082ce69a488da7c799900eb1c26c28ad94.tar.gz nodeMCU_rf_source_lmx2487-485578082ce69a488da7c799900eb1c26c28ad94.zip |
modify setting table in place instead of creating copy with copySettings
this shaves about 100uS out of initial 230uS
-rw-r--r-- | freq2lmx2487settings.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/freq2lmx2487settings.lua b/freq2lmx2487settings.lua index 6eb2588..d36f9e1 100644 --- a/freq2lmx2487settings.lua +++ b/freq2lmx2487settings.lua @@ -62,8 +62,7 @@ function copySettings(old) end --------- SLICE AND REPLACE ------------ -function FreqToSettings(freq, old_settings) --create table with new values of R0, R1, and R5 - local settings= copySettings(old_settings) +function FreqToSettings(freq, settings) --create table with new values of R0, R1, and R5 local freq, RF_N, RF_FN, RF_FD = freq2regestersValues(freq) local bRF_N=toBits(RF_N) |