]> sigrok.org Git - libsigrokdecode.git/commitdiff
sdcard_spi/usb_packet: Drop unused variables.
authorUwe Hermann <redacted>
Thu, 28 Aug 2014 19:38:39 +0000 (21:38 +0200)
committerUwe Hermann <redacted>
Mon, 15 Sep 2014 18:04:27 +0000 (20:04 +0200)
decoders/sdcard_spi/pd.py
decoders/usb_packet/pd.py

index cbf59d7e82ce046fe94e08c00ba7ea9a6a962bc0..6717c81ce7cf8507c75d66be48530ef203c67c5c 100644 (file)
@@ -98,7 +98,6 @@ class Decoder(srd.Decoder):
 
     def __init__(self, **kwargs):
         self.state = 'IDLE'
-        self.samplenum = 0
         self.ss, self.es = 0, 0
         self.bit_ss, self.bit_es = 0, 0
         self.cmd_ss, self.cmd_es = 0, 0
index 1bbf580781d97d7fdaf3dedb2c089d06ce8dfde3..a9c8b252eb27f01e9b1967530c9ef7baaa9fd640 100644 (file)
@@ -192,7 +192,6 @@ class Decoder(srd.Decoder):
     )
 
     def __init__(self):
-        self.samplenum = 0
         self.bits = []
         self.packet = []
         self.packet_summary = ''