]> sigrok.org Git - libsigrokdecode.git/commitdiff
All PDs: Minor whitespace and consistency fixes.
authorUwe Hermann <redacted>
Tue, 15 Jul 2014 20:49:43 +0000 (22:49 +0200)
committerUwe Hermann <redacted>
Tue, 15 Jul 2014 20:49:43 +0000 (22:49 +0200)
 - No newlines at the end of files.
 - No trailing ';' characters.
 - Comparison with None: Use 'is None' or 'is not None'.
 - Comparison with True/False: Use 'if cond:' or 'if not cond:'.
 - Various minor whitespace fixes.

74 files changed:
decoders/avr_isp/__init__.py
decoders/avr_isp/parts.py
decoders/avr_isp/pd.py
decoders/can/__init__.py
decoders/can/pd.py
decoders/dcf77/__init__.py
decoders/dcf77/pd.py
decoders/ds1307/__init__.py
decoders/ds1307/pd.py
decoders/edid/__init__.py
decoders/edid/pd.py
decoders/guess_bitrate/__init__.py
decoders/guess_bitrate/pd.py
decoders/i2c/__init__.py
decoders/i2c/pd.py
decoders/i2cdemux/__init__.py
decoders/i2cdemux/pd.py
decoders/i2cfilter/__init__.py
decoders/i2cfilter/pd.py
decoders/i2s/__init__.py
decoders/i2s/pd.py
decoders/ir_nec/__init__.py
decoders/ir_nec/lists.py
decoders/ir_nec/pd.py
decoders/ir_rc5/__init__.py
decoders/ir_rc5/lists.py
decoders/ir_rc5/pd.py
decoders/jtag/__init__.py
decoders/jtag/pd.py
decoders/jtag_stm32/__init__.py
decoders/jtag_stm32/pd.py
decoders/lm75/__init__.py
decoders/lm75/pd.py
decoders/lpc/__init__.py
decoders/lpc/pd.py
decoders/maxim_ds28ea00/__init__.py
decoders/maxim_ds28ea00/pd.py
decoders/midi/__init__.py
decoders/midi/lists.py
decoders/midi/pd.py
decoders/mlx90614/__init__.py
decoders/mlx90614/pd.py
decoders/mx25lxx05d/__init__.py
decoders/mx25lxx05d/pd.py
decoders/mxc6225xu/__init__.py
decoders/mxc6225xu/pd.py
decoders/nrf24l01/pd.py
decoders/nunchuk/__init__.py
decoders/nunchuk/pd.py
decoders/onewire_link/__init__.py
decoders/onewire_link/pd.py
decoders/onewire_network/__init__.py
decoders/pan1321/__init__.py
decoders/pan1321/pd.py
decoders/parallel/__init__.py
decoders/parallel/pd.py
decoders/rgb_led_spi/__init__.py
decoders/rgb_led_spi/pd.py
decoders/rtc8564/__init__.py
decoders/rtc8564/pd.py
decoders/sdcard_spi/__init__.py
decoders/sdcard_spi/pd.py
decoders/spi/__init__.py
decoders/spi/pd.py
decoders/tlc5620/__init__.py
decoders/tlc5620/pd.py
decoders/uart/__init__.py
decoders/uart/pd.py
decoders/usb_packet/__init__.py
decoders/usb_packet/pd.py
decoders/usb_signalling/__init__.py
decoders/usb_signalling/pd.py
decoders/xfp/__init__.py
decoders/xfp/pd.py

index 4c4a900eebdd4c04042b41e8a92043e441f9ae67..87a6e7cb691a540aae1cfd726d82f1b1d5179c34 100644 (file)
@@ -24,4 +24,3 @@ Programming (ISP) protocol of some Atmel AVR 8-bit microcontrollers.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index b9747f87f916538869e3e927d9a91f41062e9418..8e437b91eb2f1a2c02c673d0e3bd231a1d2ebbf7 100644 (file)
@@ -40,4 +40,3 @@ part = {
     (0x01, 0x02): 'Device locked',
     # TODO: Lots more entries.
 }
     (0x01, 0x02): 'Device locked',
     # TODO: Lots more entries.
 }
-
index a6b9c80edc9cb5173a934b5fef384999073aadbc..3a7c86857c8cf2932c6075a5b581575d87d789f1 100644 (file)
@@ -208,4 +208,3 @@ class Decoder(srd.Decoder):
 
         self.mosi_bytes = []
         self.miso_bytes = []
 
         self.mosi_bytes = []
         self.miso_bytes = []
-
index 38731c269348012161b5840b1a045ebe4cc82e85..9f9fcde857c924a4425ce0e9d1e0c1d09ef454cb 100644 (file)
@@ -28,4 +28,3 @@ MCP-2515DM-BM).
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index f80ebc6da33fa57f640b7185a43e965781e4f9fe..df2cbee7818c7d3f4938f76a44af5e44c61e92b1 100644 (file)
@@ -379,4 +379,3 @@ class Decoder(srd.Decoder):
                 if not self.reached_bit(self.curbit):
                     continue
                 self.handle_bit(can_rx)
                 if not self.reached_bit(self.curbit):
                     continue
                 self.handle_bit(can_rx)
-
index 04805c21d07c993da177831e6bacb78e5cf7d716..1a294620e343d5fecc1f91a1fb9b5f3db4356ed4 100644 (file)
@@ -27,4 +27,3 @@ http://en.wikipedia.org/wiki/DCF77
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 14d8637ff00fa287a928e38c18319e96c80c0dd2..adee4037323df77428d4ed8c8e409d8c3348287f 100644 (file)
@@ -242,7 +242,7 @@ class Decoder(srd.Decoder):
             # Even parity over date bits (36-58): DCF77 bit 58.
             parity = self.datebits.count(1)
             s = 'OK' if ((parity % 2) == 0) else 'INVALID!'
             # Even parity over date bits (36-58): DCF77 bit 58.
             parity = self.datebits.count(1)
             s = 'OK' if ((parity % 2) == 0) else 'INVALID!'
-            self.putx([16, ['Date parity: %s' % s, 'DP: %s' %s]])
+            self.putx([16, ['Date parity: %s' % s, 'DP: %s' % s]])
             self.datebits = []
         else:
             raise Exception('Invalid DCF77 bit: %d' % c)
             self.datebits = []
         else:
             raise Exception('Invalid DCF77 bit: %d' % c)
@@ -314,4 +314,3 @@ class Decoder(srd.Decoder):
                 self.state = 'WAIT FOR RISING EDGE'
 
             self.oldval = val
                 self.state = 'WAIT FOR RISING EDGE'
 
             self.oldval = val
-
index 5bc28c3782e3f8e2148bf789eef2daf685db7c93..70980a6217d02de2e743085d36878343b018ebcb 100644 (file)
@@ -24,4 +24,3 @@ real-time clock (RTC) specific registers and commands.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 1a49f9a1b31baa77ea476949c4f525ccc5d57647..77effbf73a36e5d074a87ed3f7606835803e36ea 100644 (file)
@@ -1,6 +1,6 @@
 ##
 ## This file is part of the libsigrokdecode project.
 ##
 ## This file is part of the libsigrokdecode project.
-## 
+##
 ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
 ## Copyright (C) 2013 Matt Ranostay <mranostay@gmail.com>
 ##
 ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
 ## Copyright (C) 2013 Matt Ranostay <mranostay@gmail.com>
 ##
@@ -81,7 +81,7 @@ class Decoder(srd.Decoder):
         self.putx([0, ['Day of Week: %s' % days_of_week[self.days - 1]]])
 
     def handle_reg_0x04(self, b): # Date
         self.putx([0, ['Day of Week: %s' % days_of_week[self.days - 1]]])
 
     def handle_reg_0x04(self, b): # Date
-        self.date =  bcd2int(b & 0x3f)
+        self.date = bcd2int(b & 0x3f)
         self.putx([0, ['Days: %d' % self.date]])
 
     def handle_reg_0x05(self, b): # Month
         self.putx([0, ['Days: %d' % self.date]])
 
     def handle_reg_0x05(self, b): # Month
@@ -89,7 +89,7 @@ class Decoder(srd.Decoder):
         self.putx([0, ['Months: %d' % self.months]])
 
     def handle_reg_0x06(self, b): # Year
         self.putx([0, ['Months: %d' % self.months]])
 
     def handle_reg_0x06(self, b): # Year
-        self.years = bcd2int(b & 0xff) + 2000;
+        self.years = bcd2int(b & 0xff) + 2000
         self.putx([0, ['Years: %d' % self.years]])
 
     def handle_reg_0x07(self, b): # Control Register
         self.putx([0, ['Years: %d' % self.years]])
 
     def handle_reg_0x07(self, b): # Control Register
@@ -164,4 +164,3 @@ class Decoder(srd.Decoder):
                 self.state = 'IDLE'
             else:
                 pass # TODO?
                 self.state = 'IDLE'
             else:
                 pass # TODO?
-
index 8683006db4fd5c8579de22bd2398eebfa8e2e5d9..318130f23b7c9866085c9dec15d9aae8948d169b 100644 (file)
@@ -37,4 +37,3 @@ More information on EDID is available here:
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 8af10aee7e65dba082d0c8753f92176a52cabe4a..e655fdd0a187a71bd09e2134d1937c7103cec391 100644 (file)
@@ -465,4 +465,3 @@ class Decoder(srd.Decoder):
             else:
                 if self.cache[i+2] == 0 or self.cache[i+4] == 0:
                     self.decode_descriptor(i)
             else:
                 if self.cache[i+2] == 0 or self.cache[i+4] == 0:
                     self.decode_descriptor(i)
-
index 9c7e6a47aba7d2912d0c2c7981a85129bc04e8cb..1b41f72d7ae8fb7368c3fc6d4031acc5b8160700 100644 (file)
@@ -35,4 +35,3 @@ the expected bitrate/baudrate that might be used on the channel.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 1d7434beb738fadfd2f51b91ddbf95502e1e9cb3..250d519977430f08721deaa5d4548f29e9aff4f8 100644 (file)
@@ -53,7 +53,7 @@ class Decoder(srd.Decoder):
 
     def metadata(self, key, value):
         if key == srd.SRD_CONF_SAMPLERATE:
 
     def metadata(self, key, value):
         if key == srd.SRD_CONF_SAMPLERATE:
-            self.samplerate = value;
+            self.samplerate = value
 
     def decode(self, ss, es, data):
         if not self.samplerate:
 
     def decode(self, ss, es, data):
         if not self.samplerate:
@@ -67,22 +67,21 @@ class Decoder(srd.Decoder):
                 continue
 
             # Initialize first self.olddata with the first sample value.
                 continue
 
             # Initialize first self.olddata with the first sample value.
-            if self.olddata == None:
+            if self.olddata is None:
                 self.olddata = data
                 continue
 
             # Get the smallest distance between two transitions
             # and use that to calculate the bitrate/baudrate.
                 self.olddata = data
                 continue
 
             # Get the smallest distance between two transitions
             # and use that to calculate the bitrate/baudrate.
-            if self.first_transition == True:
+            if self.first_transition:
                 self.ss_edge = self.samplenum
                 self.first_transition = False
             else:
                 b = self.samplenum - self.ss_edge
                 self.ss_edge = self.samplenum
                 self.first_transition = False
             else:
                 b = self.samplenum - self.ss_edge
-                if self.bitwidth == None or b < self.bitwidth:
+                if self.bitwidth is None or b < self.bitwidth:
                     self.bitwidth = b
                     bitrate = int(float(self.samplerate) / float(b))
                     self.putx([0, ['%d' % bitrate]])
                 self.ss_edge = self.samplenum
 
             self.olddata = data
                     self.bitwidth = b
                     bitrate = int(float(self.samplerate) / float(b))
                     self.putx([0, ['%d' % bitrate]])
                 self.ss_edge = self.samplenum
 
             self.olddata = data
-
index ba40245ebc6aeb3d44d897789e81b4ff4b27f0b2..eaebbdb8b3cb7a6c46d44ef3ed5a9315102a7408 100644 (file)
@@ -24,4 +24,3 @@ bus using two signals (SCL = serial clock line, SDA = serial data line).
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index b46fd1de194309457f067d4dc1a1841fdf78d376..0408c7d40c6ec7c4bf5f1cc9c773d4ba3b98e001 100644 (file)
@@ -299,4 +299,3 @@ class Decoder(srd.Decoder):
 
             # Save current SDA/SCL values for the next round.
             self.oldscl, self.oldsda = scl, sda
 
             # Save current SDA/SCL values for the next round.
             self.oldscl, self.oldsda = scl, sda
-
index c5202c5acc9b7695a5f8f527fd18a3838944da3e..265e5682edbfc2ca650323aabdb6b984c961c922 100644 (file)
@@ -26,4 +26,3 @@ stream containing only I²C packets for one specific I²C slave.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index e5cf47ac6696576098ae923a42fd9b17deb6bfc0..68b75a0d66fc70c9854cd3ece0520eaac279c075 100644 (file)
@@ -75,4 +75,3 @@ class Decoder(srd.Decoder):
             self.stream = -1
         else:
             pass # Do nothing, only add the I²C packet to our cache.
             self.stream = -1
         else:
             pass # Do nothing, only add the I²C packet to our cache.
-
index 6cbab8a1fe3da1354e3b02bf47589e6bdc38f641..ddb16ffb17e4439e79ecd86d911384ccab7fab55 100644 (file)
@@ -35,4 +35,3 @@ of the I²C session will be output.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 1a9f43328b6a37c8f09b39695f75b405c4d62e93..3c02a2e40ec46aabc115f4b4ed94ac3fc81e01a6 100644 (file)
@@ -87,4 +87,3 @@ class Decoder(srd.Decoder):
             self.packets = []
         else:
             pass # Do nothing, only add the I²C packet to our cache.
             self.packets = []
         else:
             pass # Do nothing, only add the I²C packet to our cache.
-
index b9c0ed72fb683e63a13585d97020ecd34694ff35..550a8c84f6231237ff40e445bcbfa85fc7c34923 100644 (file)
@@ -28,4 +28,3 @@ http://en.wikipedia.org/wiki/I2s
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index dc42a4e5d1900a84d892554ed655006fd8b56781..8b45a752cbae2c750581a511cff382002734934e 100644 (file)
@@ -93,8 +93,8 @@ class Decoder(srd.Decoder):
 
         # Calculate the sample rate.
         samplerate = '?'
 
         # Calculate the sample rate.
         samplerate = '?'
-        if self.start_sample != None and \
-            self.first_sample != None and \
+        if self.start_sample is not None and \
+            self.first_sample is not None and \
             self.start_sample > self.first_sample:
             samplerate = '%d' % (self.samplesreceived *
                 self.samplerate / (self.start_sample -
             self.start_sample > self.first_sample:
             samplerate = '%d' % (self.samplesreceived *
                 self.samplerate / (self.start_sample -
@@ -151,7 +151,7 @@ class Decoder(srd.Decoder):
                 continue
 
             # Only submit the sample, if we received the beginning of it.
                 continue
 
             # Only submit the sample, if we received the beginning of it.
-            if self.start_sample != None:
+            if self.start_sample is not None:
 
                 if not self.wrote_wav_header:
                     self.put(0, 0, self.out_bin, (0, self.wav_header()))
 
                 if not self.wrote_wav_header:
                     self.put(0, 0, self.out_bin, (0, self.wav_header()))
@@ -182,8 +182,7 @@ class Decoder(srd.Decoder):
             self.start_sample = self.samplenum
 
             # Save the first sample position.
             self.start_sample = self.samplenum
 
             # Save the first sample position.
-            if self.first_sample == None:
+            if self.first_sample is None:
                 self.first_sample = self.samplenum
 
             self.oldws = ws
                 self.first_sample = self.samplenum
 
             self.oldws = ws
-
index 84bf428897a6a191d78e4344fd91020c52ba9bc4..076566874fc4aa964470cfe5caf73e3508fc4cda 100644 (file)
@@ -23,4 +23,3 @@ NEC is a pulse-distance based infrared remote control protocol.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index c9dc595e6b82928810c7712a3d6495e9d7104da6..3f730d9c61c55c82f4a5397b798f2e0f0fec07d8 100644 (file)
@@ -49,4 +49,3 @@ command = {
         68: ['AV', 'AV'],
     }.items())),
 }
         68: ['AV', 'AV'],
     }.items())),
 }
-
index ce2e9f23cced6d52176eefe083973871f862ccfc..d14c7d33215b093fe0b74a6a23eb7d7c877d1eb3 100644 (file)
@@ -204,4 +204,3 @@ class Decoder(srd.Decoder):
                 self.state = 'IDLE'
 
             self.old_ir = self.ir
                 self.state = 'IDLE'
 
             self.old_ir = self.ir
-
index 085082fe894288bac69817ddbe97de12c1f0a75a..d94824d278ccc40ae0b199613f4e6e6e58c12df9 100644 (file)
@@ -23,4 +23,3 @@ RC-5 is a biphase/manchester based infrared remote control protocol.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 8a81ef7b73dde8af9dfecd2d6d36c9d23f586488..2ac227eb7941eee0920dc6177185bd2bfdfd6b0d 100644 (file)
@@ -92,4 +92,3 @@ command = {
         55: ['Recording', 'Rec'],
     }.items())),
 }
         55: ['Recording', 'Rec'],
     }.items())),
 }
-
index bd99826da56670719751425539cca947659d9c0e..4926cb624d4abe822b855c379cbafe7f3edb0a76 100644 (file)
@@ -173,7 +173,7 @@ class Decoder(srd.Decoder):
                 bit = 0 if edge == 's' else None
 
             self.edges.append(self.samplenum)
                 bit = 0 if edge == 's' else None
 
             self.edges.append(self.samplenum)
-            if bit != None:
+            if bit is not None:
                 self.bits.append([self.samplenum, bit])
 
             if len(self.bits) == 14:
                 self.bits.append([self.samplenum, bit])
 
             if len(self.bits) == 14:
@@ -181,4 +181,3 @@ class Decoder(srd.Decoder):
                 self.reset_decoder_state()
 
             self.old_ir = self.ir
                 self.reset_decoder_state()
 
             self.old_ir = self.ir
-
index 047e54a86530aa19d369cd8692f37ef71b7f8c3e..0caf5aa70b79927442049aa2edb7e460dd60d398 100644 (file)
@@ -29,4 +29,3 @@ http://focus.ti.com/lit/an/ssya002c/ssya002c.pdf
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index d7b35aae87f4defe3f409f0faa00dff20e29fd93..49077ed942eb08d68bbd938cd4eec450155a3cef 100644 (file)
@@ -143,7 +143,7 @@ class Decoder(srd.Decoder):
         # Rising TCK edges always advance the state machine.
         self.advance_state_machine(tms)
 
         # Rising TCK edges always advance the state machine.
         self.advance_state_machine(tms)
 
-        if self.first == True:
+        if self.first:
             # Save the start sample and item for later (no output yet).
             self.ss_item = self.samplenum
             self.first = False
             # Save the start sample and item for later (no output yet).
             self.ss_item = self.samplenum
             self.first = False
@@ -214,4 +214,3 @@ class Decoder(srd.Decoder):
                 self.handle_rising_tck_edge(tdi, tdo, tck, tms)
 
             self.oldtck = tck
                 self.handle_rising_tck_edge(tdi, tdo, tck, tms)
 
             self.oldtck = tck
-
index 8a28528380afecdf53bc122da1a36c9a2d542db7..2b091fb48e056a668321f3fe91aaf209a5cc579d 100644 (file)
@@ -28,4 +28,3 @@ http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/REFERENC
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 9113b4cc16cc4e49443ccbffc6feac81e055bd79..f2dd3c7726dfce97e6a5040204be57afac2b8547 100644 (file)
@@ -218,4 +218,3 @@ class Decoder(srd.Decoder):
             handle_reg(cmd, val)
             if cmd == 'DR TDO': # TODO: Assumes 'DR TDI' comes before 'DR TDO'
                 self.state = 'IDLE'
             handle_reg(cmd, val)
             if cmd == 'DR TDO': # TODO: Assumes 'DR TDI' comes before 'DR TDO'
                 self.state = 'IDLE'
-
index d0964184bfd87dc31499d60d5715c247ca397f19..4105814ea36e4f274b6866fa8a3019e7a4f53baf 100644 (file)
@@ -24,4 +24,3 @@ This decoder stacks on top of the 'i2c' PD and decodes the National LM75
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 6655ef013eccf288bb9bc82773d2ea4c08d13c71..9483940991ccdc19939b83bd760af4ff5f2e145f 100644 (file)
@@ -181,4 +181,3 @@ class Decoder(srd.Decoder):
             else:
                 # self.putx([0, ['Ignoring: %s (data=%s)' % (cmd, databyte)]])
                 pass
             else:
                 # self.putx([0, ['Ignoring: %s (data=%s)' % (cmd, databyte)]])
                 pass
-
index 62a43075a2a524f6c481ac1c11310736264e597b..986b550f0961ce7b056a36148e12103e5055d12c 100644 (file)
@@ -24,4 +24,3 @@ some PC mainboards, such as the "BIOS chip" or the so-called "Super I/O".
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index b626e0d338e67192103dcc63e6462a89ca85f9c5..5e25db4779ba886070fecd752ecf848926eec966 100644 (file)
@@ -346,7 +346,7 @@ class Decoder(srd.Decoder):
             if self.state == 'IDLE':
                 # A valid LPC cycle starts with LFRAME# being asserted (low).
                 if lframe != 0:
             if self.state == 'IDLE':
                 # A valid LPC cycle starts with LFRAME# being asserted (low).
                 if lframe != 0:
-                   continue
+                    continue
                 self.ss_block = self.samplenum
                 self.state = 'GET START'
                 self.lad = -1
                 self.ss_block = self.samplenum
                 self.state = 'GET START'
                 self.lad = -1
@@ -365,4 +365,3 @@ class Decoder(srd.Decoder):
                 self.handle_get_data(lad, lad_bits)
             elif self.state == 'GET TAR2':
                 self.handle_get_tar2(lad, lad_bits)
                 self.handle_get_data(lad, lad_bits)
             elif self.state == 'GET TAR2':
                 self.handle_get_tar2(lad, lad_bits)
-
index 34d1d088e0ce70cad81f53bd7ef4cc87784afbc1..750d6993d7c76aa4fc622b84da697f132844238d 100644 (file)
@@ -24,4 +24,3 @@ Maxim DS28EA00 1-Wire digital thermometer protocol.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 1e2c36a0a77ccfcd6e8999280b67a0907a17e913..229331fd393d0e917ab5bc0624df7218f9d6a3ce 100644 (file)
@@ -88,4 +88,3 @@ class Decoder(srd.Decoder):
                 self.putx([0, ['Temperature conversion status: 0x%02x' % val]])
             elif self.state in [s.upper() for s in command.values()]:
                 self.putx([0, ['TODO \'%s\': 0x%02x' % (self.state, val)]])
                 self.putx([0, ['Temperature conversion status: 0x%02x' % val]])
             elif self.state in [s.upper() for s in command.values()]:
                 self.putx([0, ['TODO \'%s\': 0x%02x' % (self.state, val)]])
-
index a453346db4700eb3edd27604161e912b2f5518a8..19be493c162c79b199278db868e1434b681179ab 100644 (file)
@@ -27,4 +27,3 @@ baud rate of 31250 baud (+/- 1%) and 8n1 settings. Bytes are sent LSB-first.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index bc0f9b8ab5c59582ea335eb4c071501dbc9ee83b..c72f5c9c1627f9883da844eb986c55ae60ca2925 100644 (file)
@@ -267,7 +267,7 @@ sysex_manufacturer_ids = {
     (0x00, 0x00, 0x5c): 'AT&T Bell Labs',
     (0x00, 0x00, 0x5e): 'Symetrix',
     (0x00, 0x00, 0x5f): 'MIDI the World',
     (0x00, 0x00, 0x5c): 'AT&T Bell Labs',
     (0x00, 0x00, 0x5e): 'Symetrix',
     (0x00, 0x00, 0x5f): 'MIDI the World',
-    
+
     (0x00, 0x00, 0x60): 'Desper Products',
     (0x00, 0x00, 0x61): 'Micros\'N MIDI',
     (0x00, 0x00, 0x62): 'Accordians Intl',
     (0x00, 0x00, 0x60): 'Desper Products',
     (0x00, 0x00, 0x61): 'Micros\'N MIDI',
     (0x00, 0x00, 0x62): 'Accordians Intl',
@@ -467,4 +467,3 @@ control_functions = {
     0x7e: 'poly mode off', # mono mode on, all notes off
     0x7f: 'poly mode on', # mono mode off, all notes off
 }
     0x7e: 'poly mode off', # mono mode on, all notes off
     0x7f: 'poly mode on', # mono mode off, all notes off
 }
-
index 0717dbc859e40829b39f968458bc53c0d96c4b98..68a8369bc2d7f38053af1282b55edbe49644070e 100644 (file)
@@ -206,4 +206,3 @@ class Decoder(srd.Decoder):
             self.handle_syscommon_msg(pdata)
         elif self.state == 'HANDLE SYSREALTIME MSG':
             self.handle_sysrealtime_msg(pdata)
             self.handle_syscommon_msg(pdata)
         elif self.state == 'HANDLE SYSREALTIME MSG':
             self.handle_sysrealtime_msg(pdata)
-
index 29cb2a93bcb487c82fbdad90769633c1f62ff190..1814ac900acc103ddcd5d491677ba59ab9ef8466 100644 (file)
@@ -24,4 +24,3 @@ infrared thermometer protocol.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index eeb2743a794e45c0adb131c2d9bbab0bfe293f7a..aa1ead548fe0b4a9878a1a4b83f027f20311b634 100644 (file)
@@ -73,4 +73,3 @@ class Decoder(srd.Decoder):
                 self.putx([1, ['Temperature: %3.2f K' % kelvin]])
                 self.state = 'IGNORE START REPEAT'
                 self.data = []
                 self.putx([1, ['Temperature: %3.2f K' % kelvin]])
                 self.state = 'IGNORE START REPEAT'
                 self.data = []
-
index 71d7b3c7412aa5990bc85c393f4870480928da8f..85d34344305e47ea62abb6e2cd14ecb582bb02b0 100644 (file)
@@ -29,4 +29,3 @@ http://www.macronix.com/QuickPlace/hq/PageLibrary4825740B00298A3B.nsf/h_Index/3F
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index a6c72d8854e54fbd7034147fe41c045502f62742..2222c3773ca631a47f608edc24684dd9312c8f30 100644 (file)
@@ -360,7 +360,7 @@ class Decoder(srd.Decoder):
         self.ss, self.es = ss, es
 
         # If we encountered a known chip command, enter the resp. state.
         self.ss, self.es = ss, es
 
         # If we encountered a known chip command, enter the resp. state.
-        if self.state == None:
+        if self.state is None:
             self.state = mosi
             self.cmdstate = 1
 
             self.state = mosi
             self.cmdstate = 1
 
@@ -372,4 +372,3 @@ class Decoder(srd.Decoder):
         else:
             self.putx([24, ['Unknown command: 0x%02x' % mosi]])
             self.state = None
         else:
             self.putx([24, ['Unknown command: 0x%02x' % mosi]])
             self.state = None
-
index c4209c86dab61d5219e0fe34b49c4e43dd0433ce..c522711c0415557cf1e708136e8f6df8f2d66802 100644 (file)
@@ -27,4 +27,3 @@ Its I²C slave address is 0x2a.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index c506fb6619040776e8d79c37ff8783467af8ca04..2f09488d2e2d5746e69139b1f84505e61f721291 100644 (file)
@@ -213,4 +213,3 @@ class Decoder(srd.Decoder):
                 self.state = 'IDLE'
             else:
                 pass # TODO?
                 self.state = 'IDLE'
             else:
                 pass # TODO?
-
index 39a6808d8f94dd56768739a00c59b6fd136af017..3208a200e1625f639ca0f24534ee3174fa3df007 100644 (file)
@@ -50,26 +50,26 @@ regs = {
     0x16: ('RX_PW_P5',    1),
     0x17: ('FIFO_STATUS', 1),
     0x1c: ('DYNPD',       1),
     0x16: ('RX_PW_P5',    1),
     0x17: ('FIFO_STATUS', 1),
     0x1c: ('DYNPD',       1),
-    0x1d: ('FEATURE',     1)
+    0x1d: ('FEATURE',     1),
 }
 
 class Decoder(srd.Decoder):
     api_version = 2
     id = 'nrf24l01'
 }
 
 class Decoder(srd.Decoder):
     api_version = 2
     id = 'nrf24l01'
-    name = 'NRF24L01(+)'
+    name = 'nRF24L01(+)'
     longname = 'Nordic Semiconductor nRF24L01/nRF24L01+'
     longname = 'Nordic Semiconductor nRF24L01/nRF24L01+'
-    desc = '2.4 GHz transceiver chip.'
+    desc = '2.4GHz transceiver chip.'
     license = 'gplv2+'
     inputs = ['spi']
     outputs = ['nrf24l01']
     annotations = (
     license = 'gplv2+'
     inputs = ['spi']
     outputs = ['nrf24l01']
     annotations = (
-        # sent from the host to the chip
-        ('cmd', 'Commands send to the device.'),
-        ('tx-data', 'Payload send to the device.'),
+        # Sent from the host to the chip.
+        ('cmd', 'Commands sent to the device'),
+        ('tx-data', 'Payload sent to the device'),
 
 
-        # returned by the chip
-        ('register', 'Registers read from the device.'),
-        ('rx-data', 'Payload read from the device.'),
+        # Returned by the chip.
+        ('register', 'Registers read from the device'),
+        ('rx-data', 'Payload read from the device'),
 
         ('warning', 'Warnings'),
     )
 
         ('warning', 'Warnings'),
     )
@@ -100,17 +100,17 @@ class Decoder(srd.Decoder):
 
     def next(self):
         '''Resets the decoder after a complete command was decoded.'''
 
     def next(self):
         '''Resets the decoder after a complete command was decoded.'''
-        # 'True' for the first byte after CS went low
+        # 'True' for the first byte after CS went low.
         self.first = True
 
         self.first = True
 
-        # the current command, and the minimum and maximum number
-        # of data bytes to follow
+        # The current command, and the minimum and maximum number
+        # of data bytes to follow.
         self.cmd = None
         self.min = 0
         self.max = 0
 
         self.cmd = None
         self.min = 0
         self.max = 0
 
-        # used to collect the bytes after the command byte
-        # (and the start/end sample number)
+        # Used to collect the bytes after the command byte
+        # (and the start/end sample number).
         self.mb = []
         self.mb_s = -1
         self.mb_e = -1
         self.mb = []
         self.mb_s = -1
         self.mb_e = -1
@@ -127,15 +127,15 @@ class Decoder(srd.Decoder):
         '''Decodes the command byte 'b' at position 'pos' and prepares
         the decoding of the following data bytes.'''
         c = self.parse_command(b)
         '''Decodes the command byte 'b' at position 'pos' and prepares
         the decoding of the following data bytes.'''
         c = self.parse_command(b)
-        if c == None:
+        if c is None:
             self.warn(pos, 'unknown command')
             return
 
         self.cmd, self.dat, self.min, self.max = c
 
         if self.cmd in ('W_REGISTER', 'ACTIVATE'):
             self.warn(pos, 'unknown command')
             return
 
         self.cmd, self.dat, self.min, self.max = c
 
         if self.cmd in ('W_REGISTER', 'ACTIVATE'):
-            # don't output anything now, the command is merged with
-            # the data bytes following it
+            # Don't output anything now, the command is merged with
+            # the data bytes following it.
             self.mb_s = pos[0]
         else:
             self.putp(pos, self.ann_cmd, self.format_command())
             self.mb_s = pos[0]
         else:
             self.putp(pos, self.ann_cmd, self.format_command())
@@ -196,20 +196,19 @@ class Decoder(srd.Decoder):
         '''
 
         if type(regid) == int:
         '''
 
         if type(regid) == int:
-            # get the name of the register
+            # Get the name of the register.
             if regid not in regs:
                 self.warn(pos, 'unknown register')
                 return
             if regid not in regs:
                 self.warn(pos, 'unknown register')
                 return
-
             name = regs[regid][0]
         else:
             name = regid
 
             name = regs[regid][0]
         else:
             name = regid
 
-        # multi byte register come LSByte first
+        # Multi byte register come LSByte first.
         data = reversed(data)
 
         if self.cmd == 'W_REGISTER' and ann == self.ann_cmd:
         data = reversed(data)
 
         if self.cmd == 'W_REGISTER' and ann == self.ann_cmd:
-            # the 'W_REGISTER' command is merged with the following byte(s)
+            # The 'W_REGISTER' command is merged with the following byte(s).
             label = '{}: {}'.format(self.format_command(), name)
         else:
             label = 'Reg. {}'.format(name)
             label = '{}: {}'.format(self.format_command(), name)
         else:
             label = 'Reg. {}'.format(name)
@@ -236,10 +235,10 @@ class Decoder(srd.Decoder):
 
         if self.cmd == 'R_REGISTER':
             self.decode_register(pos, self.ann_reg,
 
         if self.cmd == 'R_REGISTER':
             self.decode_register(pos, self.ann_reg,
-                                 self.dat, self.miso_bytes());
+                                 self.dat, self.miso_bytes())
         elif self.cmd == 'W_REGISTER':
             self.decode_register(pos, self.ann_cmd,
         elif self.cmd == 'W_REGISTER':
             self.decode_register(pos, self.ann_cmd,
-                                 self.dat, self.mosi_bytes());
+                                 self.dat, self.mosi_bytes())
         elif self.cmd == 'R_RX_PAYLOAD':
             self.decode_mb_data(pos, self.ann_rx,
                                 self.miso_bytes(), 'RX payload', False)
         elif self.cmd == 'R_RX_PAYLOAD':
             self.decode_mb_data(pos, self.ann_rx,
                                 self.miso_bytes(), 'RX payload', False)
@@ -264,11 +263,11 @@ class Decoder(srd.Decoder):
 
         if ptype == 'CS-CHANGE':
             if data1 == 0 and data2 == 1:
 
         if ptype == 'CS-CHANGE':
             if data1 == 0 and data2 == 1:
-                # rising edge, the complete command is transmitted, process
-                # the bytes that were send after the command byte
+                # Rising edge, the complete command is transmitted, process
+                # the bytes that were send after the command byte.
                 if self.cmd:
                 if self.cmd:
-                    # check if we got the minimum number of data bytes
-                    # after the command byte
+                    # Check if we got the minimum number of data bytes
+                    # after the command byte.
                     if len(self.mb) < self.min:
                         self.warn((ss, ss), 'missing data bytes')
                     elif self.mb:
                     if len(self.mb) < self.min:
                         self.warn((ss, ss), 'missing data bytes')
                     elif self.mb:
@@ -276,24 +275,23 @@ class Decoder(srd.Decoder):
 
                 self.next()
         elif ptype == 'DATA':
 
                 self.next()
         elif ptype == 'DATA':
-            mosi = data1
-            miso = data2
+            mosi, miso = data1, data2
             pos = (ss, es)
 
             pos = (ss, es)
 
-            if miso == None or mosi == None:
+            if miso is None or mosi is None:
                 raise MissingDataError('Both MISO and MOSI pins required.')
 
             if self.first:
                 self.first = False
                 raise MissingDataError('Both MISO and MOSI pins required.')
 
             if self.first:
                 self.first = False
-                # first MOSI byte is always the command
+                # First MOSI byte is always the command.
                 self.decode_command(pos, mosi)
                 self.decode_command(pos, mosi)
-                # first MISO byte is always the status register
+                # First MISO byte is always the status register.
                 self.decode_register(pos, self.ann_reg, 'STATUS', [miso])
             else:
                 if not self.cmd or len(self.mb) >= self.max:
                     self.warn(pos, 'excess byte')
                 else:
                 self.decode_register(pos, self.ann_reg, 'STATUS', [miso])
             else:
                 if not self.cmd or len(self.mb) >= self.max:
                     self.warn(pos, 'excess byte')
                 else:
-                    # collect the bytes after the command byte
+                    # Collect the bytes after the command byte.
                     if self.mb_s == -1:
                         self.mb_s = ss
                     self.mb_e = es
                     if self.mb_s == -1:
                         self.mb_s = ss
                     self.mb_e = es
index 2fdaaeb430c7c1697353846ca5d69af7e49c4e7a..ef6a74a2507a088e7ba7d199264b4f293e03077e 100644 (file)
@@ -29,4 +29,3 @@ https://www.sparkfun.com/products/9281
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 8ed98e66e092447ca7705ad6c5ded3d23080b29d..ef3d2671f668b70f637bb7baa3de2de0cd2ca878 100644 (file)
@@ -202,4 +202,3 @@ class Decoder(srd.Decoder):
             else:
                 # self.putx([14, ['Ignoring: %s (data=%s)' % (cmd, databyte)]])
                 pass
             else:
                 # self.putx([14, ['Ignoring: %s (data=%s)' % (cmd, databyte)]])
                 pass
-
index d153f93ad46f27a73c93b11581ac3c726fb9f960..6248916cc2f09e285a92de113305eca86fbb235e 100644 (file)
@@ -66,4 +66,3 @@ read the decoder source code to understand them correctly.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index c8d6cd75406d7dbc3c045113e226dd703bc7c10c..2d4e089d01fb0649cc274dfe97d85301b14a0648 100644 (file)
@@ -185,7 +185,7 @@ class Decoder(srd.Decoder):
         if (time_min < 0.0000073) or (time_max > 0.000010):
             self.putm([1, ['The overdrive mode presence sample time interval ' +
                  '(%2.1fus-%2.1fus) should be inside (7.3us, 10.0us).'
         if (time_min < 0.0000073) or (time_max > 0.000010):
             self.putm([1, ['The overdrive mode presence sample time interval ' +
                  '(%2.1fus-%2.1fus) should be inside (7.3us, 10.0us).'
-                 % (time_min*1000000, time_max*1000000)]])
+                 % (time_min * 1000000, time_max * 1000000)]])
 
     def decode(self, ss, es, data):
         if not self.samplerate:
 
     def decode(self, ss, es, data):
         if not self.samplerate:
index 31e9134fe7d9c11e6adf8ea0e3a11d6b5e14ce95..1d584efbbe4994ad5a1d6e1a8e72328e6171353d 100644 (file)
@@ -55,4 +55,3 @@ TODO:
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 9bda5232ba227f6b42d80607cdc1429e292b4d73..7aa20f05a5a6423a7912bc97f1ace48962f64548 100644 (file)
@@ -24,4 +24,3 @@ Bluetooth module Serial Port Profile (SPP) protocol.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 7edd1c893b07a091ab4a9477a190dd4b480ebaad..60e754914d28319b6baece23288ca7011563fbc2 100644 (file)
@@ -156,4 +156,3 @@ class Decoder(srd.Decoder):
             self.handle_host_command(rxtx, self.cmd[rxtx][:-2])
 
         self.cmd[rxtx] = ''
             self.handle_host_command(rxtx, self.cmd[rxtx][:-2])
 
         self.cmd[rxtx] = ''
-
index cc1f3d1322a755e20fab2da9d4d1450fb502eeab..ee8b4447d45db8c9ad448f5b59dc1791953189d0 100644 (file)
@@ -33,4 +33,3 @@ For an 8-bit bus you should use D0-D7, for a 16-bit bus use D0-D15 and so on.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 0b512c8d80a1e6496aa25e064e8bdbb3ff423950..a695ca6d403a45f2d2f81f8e1824cbf7d6f95a9d 100644 (file)
@@ -122,7 +122,7 @@ class Decoder(srd.Decoder):
         self.items.append(item)
         self.itemcount += 1
 
         self.items.append(item)
         self.itemcount += 1
 
-        if self.first == True:
+        if self.first:
             # Save the start sample and item for later (no output yet).
             self.ss_item = self.samplenum
             self.first = False
             # Save the start sample and item for later (no output yet).
             self.ss_item = self.samplenum
             self.first = False
@@ -184,4 +184,3 @@ class Decoder(srd.Decoder):
                 self.handle_bits(pins[1:])
             else:
                 self.find_clk_edge(pins[0], pins[1:])
                 self.handle_bits(pins[1:])
             else:
                 self.find_clk_edge(pins[0], pins[1:])
-
index 3d41ea588461be3dead4d30710aabdbf3c0aad74..a5a7ad6766137271e1e1d73bb7a36cd71b26f009 100644 (file)
@@ -24,4 +24,3 @@ values that are clocked over SPI in RGB values.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index ca0b1139ab492db03bf58a54fed21b5a04e6868c..d7d8e580a94fe62513b265272fa7e537b17fce0c 100644 (file)
@@ -60,9 +60,7 @@ class Decoder(srd.Decoder):
             return
 
         red, green, blue = self.mosi_bytes
             return
 
         red, green, blue = self.mosi_bytes
-        rgb_value  = int(red) << 16
-        rgb_value |= int(green) << 8
-        rgb_value |= int(blue)
+        rgb_value = int(red) << 16 | int(green) << 8 | int(blue)
 
         self.cmd_es = es
         self.putx([0, ['#%.6x' % rgb_value]])
 
         self.cmd_es = es
         self.putx([0, ['#%.6x' % rgb_value]])
index 9a397b1fb3ab057fd14c8a0c7da0c22de647dc3f..65aa6402ea5fc87c98f05c069756c57bb2926ee1 100644 (file)
@@ -24,4 +24,3 @@ RTC-8564 JE/NB real-time clock (RTC) protocol.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 5f031e2ea735ac68a5a90c5dd85b3021b6023296..e95ff10334bc53c3669f2abe549689dd49a17e4a 100644 (file)
@@ -252,4 +252,3 @@ class Decoder(srd.Decoder):
                 self.state = 'IDLE'
             else:
                 pass # TODO?
                 self.state = 'IDLE'
             else:
                 pass # TODO?
-
index 293b654fd033aa13da177b838ac4ace9ab55fab4..60f6d9853d09366e1ef41a22c8c4f009ef368214 100644 (file)
@@ -67,4 +67,3 @@ SPI mode properties (differences to SD mode):
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 6bd0be7e1d2d0a1edc4cdb185b90eeb7427033ee..cbf59d7e82ce046fe94e08c00ba7ea9a6a962bc0 100644 (file)
@@ -228,7 +228,7 @@ class Decoder(srd.Decoder):
         if len(self.read_buf) < 16 + 4:
             return
         self.cmd_es = self.es
         if len(self.read_buf) < 16 + 4:
             return
         self.cmd_es = self.es
-        self.read_buf = self.read_buf[4:] ### TODO: Document or redo.
+        self.read_buf = self.read_buf[4:] # TODO: Document or redo.
         self.putx([9, ['CSD: %s' % self.read_buf]])
         # TODO: Decode all bits.
         self.read_buf = []
         self.putx([9, ['CSD: %s' % self.read_buf]])
         # TODO: Decode all bits.
         self.read_buf = []
@@ -439,4 +439,3 @@ class Decoder(srd.Decoder):
             handle_response(miso)
 
             self.state = 'IDLE'
             handle_response(miso)
 
             self.state = 'IDLE'
-
index a1f0f1c3ebf1fe044a9e84352cfad9c014a13e34..65799059db73408eedcbbf87eae501d2b3cc399d 100644 (file)
@@ -30,4 +30,3 @@ data is decoded on every clock transition (depending on SPI mode).
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 96c0689f8a7e6ea04ccc57caca27885c4d522d72..374d22be3703fec4d0b2f038e2e9dfe9d4063a5f 100644 (file)
@@ -282,4 +282,3 @@ class Decoder(srd.Decoder):
                 raise MissingDataError('Either MISO or MOSI (or both) pins required.')
 
             self.find_clk_edge(miso, mosi, clk, cs)
                 raise MissingDataError('Either MISO or MOSI (or both) pins required.')
 
             self.find_clk_edge(miso, mosi, clk, cs)
-
index c6157600db2e46d390df40f5d3f3279144451ba5..6992361b73546be4aa4f441425ea34d798fa6523 100644 (file)
@@ -23,4 +23,3 @@ The Texas Instruments TLC5620 is an 8-bit quad DAC.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 6e7c454df13d30c872eea856a54b9e58821e56d3..2a407d1687cc288a15349544a94107af5f1518fe 100644 (file)
@@ -128,4 +128,3 @@ class Decoder(srd.Decoder):
             self.oldclk = clk
             self.oldload = load
             self.oldldac = ldac
             self.oldclk = clk
             self.oldload = load
             self.oldldac = ldac
-
index f3c0693a9923a7e37ea9c1e2cf0a9d717db0d26e..d40a7c9cd8f9edd5f3c7db528439c3b5d369f541 100644 (file)
@@ -39,4 +39,3 @@ or others.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 63ea50d853f6b8e23ae853a3dafa45297a99bdf8..fef3aa525fe3b0f32893a8a915cd6cd1b4e24bcd 100644 (file)
@@ -173,7 +173,7 @@ class Decoder(srd.Decoder):
 
     def metadata(self, key, value):
         if key == srd.SRD_CONF_SAMPLERATE:
 
     def metadata(self, key, value):
         if key == srd.SRD_CONF_SAMPLERATE:
-            self.samplerate = value;
+            self.samplerate = value
             # The width of one UART bit in number of samples.
             self.bit_width = float(self.samplerate) / float(self.options['baudrate'])
 
             # The width of one UART bit in number of samples.
             self.bit_width = float(self.samplerate) / float(self.options['baudrate'])
 
@@ -359,4 +359,3 @@ class Decoder(srd.Decoder):
 
                 # Save current RX/TX values for the next round.
                 self.oldbit[rxtx] = signal
 
                 # Save current RX/TX values for the next round.
                 self.oldbit[rxtx] = signal
-
index 06b67b9ddede960cd3aa51769f3e551e6488d42d..e308652ebc62bca8755b629ec79bf0351995ff8a 100644 (file)
@@ -42,4 +42,3 @@ http://www.usb.org/developers/docs/
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 4716dd7109edece530a042c71fea32d3c4096612..1bbf580781d97d7fdaf3dedb2c089d06ce8dfde3 100644 (file)
@@ -338,4 +338,3 @@ class Decoder(srd.Decoder):
                 self.bits, self.state = [], 'WAIT FOR SOP'
             else:
                 pass # TODO: Error
                 self.bits, self.state = [], 'WAIT FOR SOP'
             else:
                 pass # TODO: Error
-
index 2311b1f3c5af73376d0dcea41c83a178d3beecbf..1f6adbf0094a60c643e3bda21c3ad32b7d6b37d2 100644 (file)
@@ -49,4 +49,3 @@ http://www.usb.org/developers/docs/
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 59db0d4cce66938df92ff880c66f68866a8f1cf8..8ba55d90cae07ce5333e892adf94eb5aeb49a27b 100644 (file)
@@ -240,4 +240,3 @@ class Decoder(srd.Decoder):
                     self.get_bit(sym)
                 elif self.state == 'GET EOP':
                     self.get_eop(sym)
                     self.get_bit(sym)
                 elif self.state == 'GET EOP':
                     self.get_eop(sym)
-
index fa4e8a230c06e2452cfe4b092ab84ff8c50cda7d..664967df6e9c78e295e6c2c8b4e2a64b5132478a 100644 (file)
@@ -38,4 +38,3 @@ The XFP specification is available here:
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index b8ec8edb22920cc2fbd012dcf952d7535c137efa..9a6543c2404ebf08db5d64ec880993dc48b87200 100644 (file)
@@ -644,4 +644,3 @@ class Decoder(srd.Decoder):
         self.annotate("AUX1 monitoring", aux)
         aux = AUX_TYPES[data[0] & 0x0f]
         self.annotate("AUX2 monitoring", aux)
         self.annotate("AUX1 monitoring", aux)
         aux = AUX_TYPES[data[0] & 0x0f]
         self.annotate("AUX2 monitoring", aux)
-