diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-05-26 20:57:50 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-05-26 21:54:04 +0200 |
commit | 826981ac5a2105c7231aeb5e5e523cd37ce72edd (patch) | |
tree | a54c1535e4c776e8a09a1d1c508244d80b227741 /decoders | |
parent | 3801453ccc140b17e78079e9b9cc6cd8a01322f6 (diff) | |
download | libsigrokdecode-826981ac5a2105c7231aeb5e5e523cd37ce72edd.tar.gz libsigrokdecode-826981ac5a2105c7231aeb5e5e523cd37ce72edd.zip |
ntf905: Add/rename required self.reset() method.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/nrf905/pd.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/decoders/nrf905/pd.py b/decoders/nrf905/pd.py index 4771314..076fbed 100644 --- a/decoders/nrf905/pd.py +++ b/decoders/nrf905/pd.py @@ -111,14 +111,14 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (ann_warn,)) ) - def reset_data(self): - self.mosi_bytes, self.miso_bytes = [], [] - self.cmd_samples = {'ss': 0, 'es': 0} - def __init__(self): self.ss_cmd, self.es_cmd = 0, 0 self.cs_asserted = False - self.reset_data() + self.reset() + + def reset(self): + self.mosi_bytes, self.miso_bytes = [], [] + self.cmd_samples = {'ss': 0, 'es': 0} def start(self): self.out_ann = self.register(srd.OUTPUT_ANN) @@ -338,7 +338,7 @@ class Decoder(srd.Decoder): self.set_cs_status(ss, False) if len(self.mosi_bytes): self.process_cmd() - self.reset_data() + self.reset() elif ptype == 'DATA': # Ignore traffic if CS is not asserted. |