]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/pan1321/pan1321.py
srd: PDs: Kill obsolete 'longdesc' entries.
[libsigrokdecode.git] / decoders / pan1321 / pan1321.py
index 9c22637d1709b81a1a564ae02cf70853b195b3a8..eed24cdf6272674db9df2749323ad69fe3a2c9a2 100644 (file)
 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 ##
 
-#
 # Panasonic PAN1321 Bluetooth module protocol decoder
-#
-# TODO
-#
 
 import sigrokdecode as srd
 
 # Annotation feed formats
 ANN_ASCII = 0
 
-# UART 'data' packet type.
-T_DATA = 1
-
 # ...
 RX = 0
 TX = 1
@@ -42,7 +35,6 @@ class Decoder(srd.Decoder):
     name = 'PAN1321'
     longname = 'Panasonic PAN1321'
     desc = 'TODO.'
-    longdesc = 'TODO.'
     license = 'gplv2+'
     inputs = ['uart']
     outputs = ['pan1321']
@@ -97,7 +89,7 @@ class Decoder(srd.Decoder):
         ptype, rxtx, pdata = data
 
         # For now, ignore all UART packets except the actual data packets.
-        if ptype != T_DATA:
+        if ptype != 'DATA':
             return
 
         # Append a new (ASCII) byte to the currently built/parsed command.