diff options
Diffstat (limited to 'lmx2487lib.lua')
-rw-r--r-- | lmx2487lib.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lmx2487lib.lua b/lmx2487lib.lua index dc36f37..ff4841f 100644 --- a/lmx2487lib.lua +++ b/lmx2487lib.lua @@ -15,15 +15,12 @@ function set_lmx2487register(value, register) -- this is new value and thus needs to be updated in hardware lmx2487_registers[register+1] = value lmx2487_need_update[register+1] = true - --print("updating register " .. register .. " with value " .. value) end - -- otherwise we do nothing end function get_lmx2487register(register) -- register labeled 0, 1, 2, ..., 7 - local value = (lmx2487_registers[register+1]) - --print("register " .. register .. " is set to " .. value) + local value = (lmx2487_registers[register+1]) return value end @@ -108,7 +105,7 @@ function FreqToSettings(freq) R1_new=get_lmx2487register(1) R5_new=get_lmx2487register(5) - -- this code is extremely convoluted refer to the lmx2487 manual + -- This code is extremely convoluted, refer to the lmx2487 manual -- to see what bits are used in what place in a register. -- But I show in comments obsolete but human readable notation: -- tableReplace( Rn, bitSlice(..), stPos, endPos) |