summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorGareth McMullin <gareth@blacksphere.co.nz>2011-11-15 18:47:15 +1300
committerGareth McMullin <gareth@blacksphere.co.nz>2011-11-20 16:31:48 +1300
commit052f32eee3b5e2f850f529c003bc90ef0bb88cc9 (patch)
tree54952ffd6a72b57c23af9a3b30672d3385ccd9c3 /decoders
parent3b24e3781a0374ce2d66f1d3de59a5a5d10d657a (diff)
downloadlibsigrokdecode-052f32eee3b5e2f850f529c003bc90ef0bb88cc9.tar.gz
libsigrokdecode-052f32eee3b5e2f850f529c003bc90ef0bb88cc9.zip
Simplified code for calling Python decode method.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/spi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/spi.py b/decoders/spi.py
index 152b263..4c66196 100644
--- a/decoders/spi.py
+++ b/decoders/spi.py
@@ -13,10 +13,10 @@ class Decoder():
# Probe names with a set of defaults
probes = {'sdata':0, 'sck':1}
- def __init__(self, metadata, **kwargs):
+ def __init__(self, unitsize, **kwargs):
# Metadata comes in here, we don't care for now
#print kwargs
- self.unitsize = metadata['unitsize']
+ self.unitsize = unitsize
self.probes = Decoder.probes
self.oldsck = True