diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-03 20:26:29 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-03 20:26:29 +0100 |
commit | 71071bcfd36bed13b110931a6cc8189a1493dd2a (patch) | |
tree | 8375247ed06f39b350a6514019f5d34f0383b958 /decoders | |
parent | 066e65a3a60ef5836d9e75b8dffeb55a152efe4d (diff) | |
download | libsigrokdecode-71071bcfd36bed13b110931a6cc8189a1493dd2a.tar.gz libsigrokdecode-71071bcfd36bed13b110931a6cc8189a1493dd2a.zip |
srd: Remove decode() docstrings.
This info is in the decoder's metadata, where the frontends can get it
from programmatically anyway.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/i2c.py | 2 | ||||
-rw-r--r-- | decoders/nunchuk.py | 2 | ||||
-rw-r--r-- | decoders/transitioncounter.py | 3 | ||||
-rw-r--r-- | decoders/uart.py | 2 |
4 files changed, 0 insertions, 9 deletions
diff --git a/decoders/i2c.py b/decoders/i2c.py index e082763..cf16d3a 100644 --- a/decoders/i2c.py +++ b/decoders/i2c.py @@ -323,8 +323,6 @@ class Decoder(sigrok.Decoder): super(Decoder, self).put(timeoffset, duration, output_id, data) def decode(self, timeoffset, duration, data): - """I2C protocol decoder""" - self.timeoffset = timeoffset self.duration = duration print("++", timeoffset, duration, len(data)) diff --git a/decoders/nunchuk.py b/decoders/nunchuk.py index cc1252c..d330747 100644 --- a/decoders/nunchuk.py +++ b/decoders/nunchuk.py @@ -110,8 +110,6 @@ class Decoder(sigrok.Decoder): pass def decode(self, timeoffset, duration, data): - """Nintendo Wii Nunchuk decoder""" - out = [] o = {} diff --git a/decoders/transitioncounter.py b/decoders/transitioncounter.py index 70f1f1a..846e9d9 100644 --- a/decoders/transitioncounter.py +++ b/decoders/transitioncounter.py @@ -68,9 +68,6 @@ class Decoder(sigrok.Decoder): pass def decode(self, timeoffset, duration, data): - """Counts the low->high and high->low transitions in the specified - channel(s) of the signal.""" - # We should accept a list of samples and iterate... for sample in sampleiter(data, self.unitsize): diff --git a/decoders/uart.py b/decoders/uart.py index 7a63d77..66deb5e 100644 --- a/decoders/uart.py +++ b/decoders/uart.py @@ -395,8 +395,6 @@ class Decoder(sigrok.Decoder): return o def decode(self, timeoffset, duration, data): - """UART protocol decoder""" - out = [] for sample in sampleiter(data, self.unitsize): |