diff options
Diffstat (limited to 'lmx2487lib.lua')
-rw-r--r-- | lmx2487lib.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lmx2487lib.lua b/lmx2487lib.lua index ce504c7..dc36f37 100644 --- a/lmx2487lib.lua +++ b/lmx2487lib.lua @@ -29,9 +29,9 @@ end function send_register_lmx2487( register) if ( lmx2487_need_update[register +1] ) then - --print(tmr.now()) - print("sending register " .. register .. " with value " .. get_lmx2487register( register ) ) - --print(tmr.now()) + if DEBUG then + print("sending register " .. register .. " with value " .. get_lmx2487register( register ) ) + end -- do hardware talking microwire_send_data( get_lmx2487register( register ) ) lmx2487_need_update[register+1]=false |