diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-11 11:54:09 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-11 11:54:09 -0400 |
commit | 25b74e20503b5cccb384569bbc5e6b5705dc57f9 (patch) | |
tree | 523ebc9b29f0cebd13e975a1a042454a5001eda6 /lmx2487lib.lua | |
parent | 1e824096c37239cb354c80bee3fa38dc971ccd83 (diff) | |
download | nodeMCU_rf_source_lmx2487-25b74e20503b5cccb384569bbc5e6b5705dc57f9.tar.gz nodeMCU_rf_source_lmx2487-25b74e20503b5cccb384569bbc5e6b5705dc57f9.zip |
clean up comments and code formatting
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) |