]> sigrok.org Git - libsigrokdecode.git/commitdiff
decoders: Don't set self.samplenum.
authorUwe Hermann <redacted>
Sat, 7 Dec 2019 18:11:27 +0000 (19:11 +0100)
committerUwe Hermann <redacted>
Sat, 7 Dec 2019 18:11:27 +0000 (19:11 +0100)
This is managed by the backend and should be read-only for PDs.

decoders/dali/pd.py
decoders/dsi/pd.py
decoders/ir_rc5/pd.py
decoders/ir_rc6/pd.py
decoders/lpc/pd.py
decoders/mdio/pd.py
decoders/ps2/pd.py
decoders/spi/pd.py
decoders/uart/pd.py
decoders/usb_signalling/pd.py

index 53147463962bbe8dc97f0cbc3c8c335377c1db1e..8be494af52759d9bd1c04ab0f35b23b1d2bba881 100644 (file)
@@ -61,7 +61,6 @@ class Decoder(srd.Decoder):
 
     def reset(self):
         self.samplerate = None
-        self.samplenum = None
         self.edges, self.bits, self.ss_es_bits = [], [], []
         self.state = 'IDLE'
         self.dev_type = None
index 7ce95179f9aa7f9a254793b37229ecfcd235253f..ea27079cecdee9c27d661f7193e94eac1a0fb97e 100644 (file)
@@ -56,7 +56,6 @@ class Decoder(srd.Decoder):
 
     def reset(self):
         self.samplerate = None
-        self.samplenum = None
         self.edges, self.bits, self.ss_es_bits = [], [], []
         self.state = 'IDLE'
 
index e1c47b6b4eaef937676173250d774681cb9f1c04..bbe0ca76c70f35ec02ac859a7e94cd04fac40be1 100644 (file)
@@ -61,7 +61,6 @@ class Decoder(srd.Decoder):
 
     def reset(self):
         self.samplerate = None
-        self.samplenum = None
         self.edges, self.bits, self.ss_es_bits = [], [], []
         self.state = 'IDLE'
 
index 90a55aededc3c446530bc69d7b7247c3ab5971f2..e195dbd161ed129e9a541efe0be9f1c2d4cfae26 100644 (file)
@@ -58,7 +58,6 @@ class Decoder(srd.Decoder):
 
     def reset(self):
         self.samplerate = None
-        self.samplenum = None
         self.edges, self.deltas, self.bits = [], [], []
         self.state = 'IDLE'
         self.mode = 0
index 5eb0983e0ebe94b0550e96b98bdfa9aeec79689f..095c8b576f412a44be95e5d9a74e5554fab60a05 100644 (file)
@@ -142,7 +142,6 @@ class Decoder(srd.Decoder):
     def reset(self):
         self.state = 'IDLE'
         self.oldlclk = -1
-        self.samplenum = 0
         self.lad = -1
         self.addr = 0
         self.cur_nibble = 0
index 15414e5fac891a2d7aca01f2f438bb4235abc382..1d060b0b99150687ee3481ff91ec00fd895bc50b 100644 (file)
@@ -67,7 +67,6 @@ class Decoder(srd.Decoder):
 
     def reset(self):
         self.illegal_bus = 0
-        self.samplenum = -1
         self.clause45_addr = -1 # Clause 45 is context sensitive.
         self.reset_decoder_state()
 
index c23e01900115b0f59a821003a444a356d3c13e19..194b0b1f9b1f0069666e98e82508368288fd7632 100644 (file)
@@ -58,7 +58,6 @@ class Decoder(srd.Decoder):
 
     def reset(self):
         self.bits = []
-        self.samplenum = 0
         self.bitcount = 0
 
     def start(self):
index 952b0666bb4c09826715f458fe8a286a3d866e7f..5f18d7291de17d568652c0c112327b7d28d6dcd3 100644 (file)
@@ -137,7 +137,6 @@ class Decoder(srd.Decoder):
         self.misobytes = []
         self.mosibytes = []
         self.ss_block = -1
-        self.samplenum = -1
         self.ss_transfer = -1
         self.cs_was_deasserted = False
         self.have_cs = self.have_miso = self.have_mosi = None
index 867585e465228f03f02f890cec193ad329c46511..4ce6ef9dbe14a301a7b2a92f637f99cb51e1f317 100644 (file)
@@ -195,7 +195,6 @@ class Decoder(srd.Decoder):
 
     def reset(self):
         self.samplerate = None
-        self.samplenum = 0
         self.frame_start = [-1, -1]
         self.frame_valid = [None, None]
         self.startbit = [-1, -1]
index 373103614fadf7538d9351f8da0ff478b372f793..626dcd0a3d00c40809227802d7f4f61fb3f813c1 100644 (file)
@@ -142,7 +142,6 @@ class Decoder(srd.Decoder):
         self.samplerate = None
         self.oldsym = 'J' # The "idle" state is J.
         self.ss_block = None
-        self.samplenum = 0
         self.bitrate = None
         self.bitwidth = None
         self.samplepos = None