diff options
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/am230x/pd.py | 3 | ||||
-rw-r--r-- | decoders/dcf77/pd.py | 3 | ||||
-rw-r--r-- | decoders/guess_bitrate/pd.py | 2 | ||||
-rw-r--r-- | decoders/i2c/pd.py | 4 | ||||
-rw-r--r-- | decoders/ir_nec/pd.py | 3 | ||||
-rw-r--r-- | decoders/mdio/pd.py | 1 | ||||
-rw-r--r-- | decoders/parallel/pd.py | 3 | ||||
-rw-r--r-- | decoders/spdif/pd.py | 3 | ||||
-rw-r--r-- | decoders/timing/pd.py | 1 |
9 files changed, 0 insertions, 23 deletions
diff --git a/decoders/am230x/pd.py b/decoders/am230x/pd.py index f76cab2..3c5003d 100644 --- a/decoders/am230x/pd.py +++ b/decoders/am230x/pd.py @@ -128,9 +128,6 @@ class Decoder(srd.Decoder): def start(self): self.out_ann = self.register(srd.OUTPUT_ANN) - # Assume that the initial pin state is high (logic 1). - self.initial_pins = [1] - def metadata(self, key, value): if key != srd.SRD_CONF_SAMPLERATE: return diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py index b643631..a4e87f6 100644 --- a/decoders/dcf77/pd.py +++ b/decoders/dcf77/pd.py @@ -75,9 +75,6 @@ class Decoder(srd.Decoder): def start(self): self.out_ann = self.register(srd.OUTPUT_ANN) - # Assume that the initial pin state is logic 1. - self.initial_pins = [1] - def metadata(self, key, value): if key == srd.SRD_CONF_SAMPLERATE: self.samplerate = value diff --git a/decoders/guess_bitrate/pd.py b/decoders/guess_bitrate/pd.py index 45d68b0..1bccc54 100644 --- a/decoders/guess_bitrate/pd.py +++ b/decoders/guess_bitrate/pd.py @@ -49,8 +49,6 @@ class Decoder(srd.Decoder): def start(self): self.out_ann = self.register(srd.OUTPUT_ANN) - self.initial_pins = [1] # TODO: Not generally correct. - def metadata(self, key, value): if key == srd.SRD_CONF_SAMPLERATE: self.samplerate = value diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index d2f8bc4..0e7f769 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -130,10 +130,6 @@ class Decoder(srd.Decoder): self.out_bitrate = self.register(srd.OUTPUT_META, meta=(int, 'Bitrate', 'Bitrate from Start bit to Stop bit')) - # Assume that the initial SCL/SDA pin state is high (logic 1). - # This is a good default, since both pins have pullups as per spec. - self.initial_pins = [1, 1] - def putx(self, data): self.put(self.ss, self.es, self.out_ann, data) diff --git a/decoders/ir_nec/pd.py b/decoders/ir_nec/pd.py index 93b398b..03a5469 100644 --- a/decoders/ir_nec/pd.py +++ b/decoders/ir_nec/pd.py @@ -108,9 +108,6 @@ class Decoder(srd.Decoder): self.out_ann = self.register(srd.OUTPUT_ANN) self.active = 0 if self.options['polarity'] == 'active-low' else 1 - # Set the initial (assumed) value of the pin as per user-config. - self.initial_pins = [1 if self.active == 0 else 0] - def metadata(self, key, value): if key == srd.SRD_CONF_SAMPLERATE: self.samplerate = value diff --git a/decoders/mdio/pd.py b/decoders/mdio/pd.py index ed6cfef..7c2fc5f 100644 --- a/decoders/mdio/pd.py +++ b/decoders/mdio/pd.py @@ -62,7 +62,6 @@ class Decoder(srd.Decoder): ) def __init__(self): - self.initial_pins = [1, 1] self.illegal_bus = 0 self.samplenum = -1 self.clause45_addr = -1 # Clause 45 is context sensitive. diff --git a/decoders/parallel/pd.py b/decoders/parallel/pd.py index db9b371..c8ac2b0 100644 --- a/decoders/parallel/pd.py +++ b/decoders/parallel/pd.py @@ -99,9 +99,6 @@ class Decoder(srd.Decoder): self.out_python = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - # Assume that the initial pin state of all pins is logic 1. - self.initial_pins = [1] * (NUM_CHANNELS + 1) - def putpb(self, data): self.put(self.ss_item, self.es_item, self.out_python, data) diff --git a/decoders/spdif/pd.py b/decoders/spdif/pd.py index 1f1ed70..0c535e4 100644 --- a/decoders/spdif/pd.py +++ b/decoders/spdif/pd.py @@ -79,9 +79,6 @@ class Decoder(srd.Decoder): def start(self): self.out_ann = self.register(srd.OUTPUT_ANN) - # Assume that the initial pin state is logic 0. - self.initial_pins = [0] - def metadata(self, key, value): if key == srd.SRD_CONF_SAMPLERATE: self.samplerate = value diff --git a/decoders/timing/pd.py b/decoders/timing/pd.py index be600e9..ab963bb 100644 --- a/decoders/timing/pd.py +++ b/decoders/timing/pd.py @@ -88,7 +88,6 @@ class Decoder(srd.Decoder): def start(self): self.out_ann = self.register(srd.OUTPUT_ANN) self.edge = self.options['edge'] - self.initial_pins = [0] def decode(self): if not self.samplerate: |