summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2020-05-26 21:52:52 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2020-05-26 22:02:23 +0200
commit76de503871ada561290040204d3d8188b1ace336 (patch)
tree95c639bd1402554e19db135501c5fdaa1afc887d /decoders
parent104719c1871ef69c42a52b86bec7488a4f6fedf0 (diff)
downloadlibsigrokdecode-76de503871ada561290040204d3d8188b1ace336.tar.gz
libsigrokdecode-76de503871ada561290040204d3d8188b1ace336.zip
nrf905: Drop all print() calls.
If those are useful for the decoder user, they should be annotations using the Ann.WARN annotation class.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/nrf905/pd.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/decoders/nrf905/pd.py b/decoders/nrf905/pd.py
index c36bd10..cc22e93 100644
--- a/decoders/nrf905/pd.py
+++ b/decoders/nrf905/pd.py
@@ -167,8 +167,6 @@ class Decoder(srd.Decoder):
reg_addr = i + addr
if reg_addr <= 9:
self.parse_config_register(reg_addr, registers[i], is_write)
- else:
- print('INVALID REGISTER ADDR ' + hex(reg_addr))
i += 1
def dump_cmd_bytes(self, prefix, cmd_bytes, ann):
@@ -182,14 +180,12 @@ class Decoder(srd.Decoder):
def handle_WC(self):
start_addr = self.mosi_bytes[0][0] & 0x0F
if start_addr > 9:
- print('ERROR: WRONG OFFSET')
return
self.parse_config_registers(start_addr, self.mosi_bytes[1:], True)
def handle_RC(self):
start_addr = self.mosi_bytes[0][0] & 0x0F
if start_addr > 9:
- print('ERROR: WRONG OFFSET')
return
self.parse_config_registers(start_addr, self.miso_bytes[1:], False)