summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lmx2487lib.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lmx2487lib.lua b/lmx2487lib.lua
index 9250f72..b115d4e 100644
--- a/lmx2487lib.lua
+++ b/lmx2487lib.lua
@@ -6,8 +6,8 @@ Eugeniy Mikhailov
-- there are 8 registers to track for lmx2487
-- labeled R0, R1, ..., R7 in the manual
lmx2487_registers = {0, 0, 0, 0, 0, 0, 0, 0}
--- if need update set to true updater script will resend this register
-lmx2487_need_update = {false, false, false, false, false, false, false, false}
+-- if a register needs update set to true, updater script will resend this register
+lmx2487_need_update = {true, true, true, true, true, true, true, true}
function set_lmx2487register(value, register)
-- register labeled 0, 1, 2, ..., 7
@@ -50,6 +50,7 @@ end
function set_lmx2487_board_to_default_state()
-- this defaults are historic and borrowed from lmx2487lib.tcl
-- defaults (set RF freq to 6.83468635e9 GHz and lock it to 10MHz oscillator)
+ lmx2487_need_update = {true, true, true, true, true, true, true, true}
set_lmx2487register(11197502 , 0)
set_lmx2487register(4352515 , 1)
set_lmx2487register(8560613 , 2)