From 97b874bd0b6913ed52df1b8aac5e7491479fac9a Mon Sep 17 00:00:00 2001
From: Uwe Hermann <uwe@hermann-uwe.de>
Date: Thu, 11 May 2017 23:20:58 +0200
Subject: Add srd_inst_initial_pins_set_all() and support code.

This allows frontends to set the assumed initial pins (i.e., the assumed
state of the pins before the first sample of a capture) to user-specified
values.

The assumed initial pins can be either low, or high, or "use same value
as the first sample of the capture".

The special self.initial_pins decoder attribute is now removed.
---
 decoders/ir_nec/pd.py | 3 ---
 1 file changed, 3 deletions(-)

(limited to 'decoders/ir_nec')

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
-- 
cgit v1.2.3-70-g09d2