From: Uwe Hermann Date: Tue, 26 May 2020 19:52:52 +0000 (+0200) Subject: nrf905: Drop all print() calls. X-Git-Url: http://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=76de503871ada561290040204d3d8188b1ace336 nrf905: Drop all print() calls. If those are useful for the decoder user, they should be annotations using the Ann.WARN annotation class. --- 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)