diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-11 11:49:05 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-11 11:49:05 -0400 |
commit | bde52623ee38d655594359ba805201243c2652dd (patch) | |
tree | ce2f6f99271a6965062aadcf305f299454e91506 /lmx2487lib.lua | |
parent | 80a43680f1e1d3a5fcba5a83f3cc0390cd6adc86 (diff) | |
download | nodeMCU_rf_source_lmx2487-bde52623ee38d655594359ba805201243c2652dd.tar.gz nodeMCU_rf_source_lmx2487-bde52623ee38d655594359ba805201243c2652dd.zip |
added DEBUG switch to print info when needed
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 |