X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fpan1321%2Fpan1321.py;h=2c7e6c6e2af7e822706f1334e9870a95ecd43299;hb=1b75abfdd3e00ef590c9d1905863f6f2cb5a8632;hp=9c22637d1709b81a1a564ae02cf70853b195b3a8;hpb=b77614bc977475102062ac5d1c8fe8e55349315a;p=libsigrokdecode.git diff --git a/decoders/pan1321/pan1321.py b/decoders/pan1321/pan1321.py index 9c22637..2c7e6c6 100644 --- a/decoders/pan1321/pan1321.py +++ b/decoders/pan1321/pan1321.py @@ -18,20 +18,13 @@ ## 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 @@ -97,7 +90,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.