From 485578082ce69a488da7c799900eb1c26c28ad94 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 10 Jun 2021 22:08:30 -0400 Subject: modify setting table in place instead of creating copy with copySettings this shaves about 100uS out of initial 230uS --- freq2lmx2487settings.lua | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3