From 052f32eee3b5e2f850f529c003bc90ef0bb88cc9 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Tue, 15 Nov 2011 18:47:15 +1300 Subject: Simplified code for calling Python decode method. --- decoders/spi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoders') 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 -- cgit v1.2.3-70-g09d2