diff options
author | Bert Vermeulen <bert@biot.com> | 2013-11-14 21:55:09 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2013-11-15 22:05:54 +0100 |
commit | 0309c15a6990f57fbbb27d6a77957b1282163f06 (patch) | |
tree | b66b202f731b4e0d7b48a64e29f9bd22d260a046 /decoders/spi/pd.py | |
parent | be465111b552c7c2a2262ac49758a30a8bf1b1d5 (diff) | |
download | libsigrokdecode-0309c15a6990f57fbbb27d6a77957b1282163f06.tar.gz libsigrokdecode-0309c15a6990f57fbbb27d6a77957b1282163f06.zip |
Drop outdated report: this should be handled by a frontend.
Diffstat (limited to 'decoders/spi/pd.py')
-rw-r--r-- | decoders/spi/pd.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py index 21012c1..e00235e 100644 --- a/decoders/spi/pd.py +++ b/decoders/spi/pd.py @@ -93,7 +93,6 @@ class Decoder(srd.Decoder): self.bitcount = 0 self.mosidata = 0 self.misodata = 0 - self.bytesreceived = 0 self.startsample = -1 self.samplenum = -1 self.cs_was_deasserted_during_data_word = 0 @@ -111,9 +110,6 @@ class Decoder(srd.Decoder): self.out_bitrate = self.register(srd.OUTPUT_META, meta=(int, 'Bitrate', 'Bitrate during transfers')) - def report(self): - return 'SPI: %d bytes received' % self.bytesreceived - def putpw(self, data): self.put(self.startsample, self.samplenum, self.out_proto, data) @@ -169,9 +165,6 @@ class Decoder(srd.Decoder): # Reset decoder state. self.mosidata = self.misodata = self.bitcount = 0 - # Keep stats for summary. - self.bytesreceived += 1 - def find_clk_edge(self, miso, mosi, sck, cs): if self.have_cs and self.oldcs != cs: # Send all CS# pin value changes. |