projects
/
libsigrokdecode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bdadba
)
I2C: no need to copy default option values over from the class
author
Bert Vermeulen
<bert@biot.com>
Tue, 17 Jan 2012 02:39:28 +0000
(
03:39
+0100)
committer
Bert Vermeulen
<bert@biot.com>
Tue, 17 Jan 2012 02:39:28 +0000
(
03:39
+0100)
definition anymore: it happens automagically.
decoders/i2c/i2c.py
patch
|
blob
|
history
diff --git
a/decoders/i2c/i2c.py
b/decoders/i2c/i2c.py
index 270e0f3a9f3faeaf1bb041630dbe1a5a32907f97..4352c36246a3edb117c03ae49c2103c7ab4ae693 100644
(file)
--- a/
decoders/i2c/i2c.py
+++ b/
decoders/i2c/i2c.py
@@
-154,9
+154,6
@@
class Decoder(srd.Decoder):
self.oldscl = None
self.oldsda = None
- # Set protocol decoder option defaults.
- self.addressing = Decoder.options['addressing'][1]
-
def start(self, metadata):
self.out_proto = self.add(srd.OUTPUT_PROTO, 'i2c')
self.out_ann = self.add(srd.OUTPUT_ANN, 'i2c')