summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2015-11-13 04:55:56 +0100
committerStefan Brüns <stefan.bruens@rwth-aachen.de>2015-11-30 00:03:01 +0100
commit0f274b53a9c0c8a40cdb0ed41023705d99bc6c6c (patch)
treea5b717c6d090bd5e110969bd1a48bfac3492db31 /decoders
parentbef4949d31076cf7dfdea5ed8bf7800bf3e2678d (diff)
downloadlibsigrokdecode-0f274b53a9c0c8a40cdb0ed41023705d99bc6c6c.tar.gz
libsigrokdecode-0f274b53a9c0c8a40cdb0ed41023705d99bc6c6c.zip
usb_signalling: handle symbol errors in EOP state
Only SE0 and J are valid symbols during EOP
Diffstat (limited to 'decoders')
-rw-r--r--decoders/usb_signalling/pd.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py
index c00786a..774ed49 100644
--- a/decoders/usb_signalling/pd.py
+++ b/decoders/usb_signalling/pd.py
@@ -209,6 +209,10 @@ class Decoder(srd.Decoder):
self.putm([5, ['EOP', 'E']])
self.state = 'IDLE'
self.bitwidth = float(self.samplerate) / float(self.bitrate)
+ else:
+ self.putpm(['ERR', None])
+ self.putm([8, ['EOP Error', 'EErr', 'E']])
+ self.state = 'IDLE'
def get_bit(self, sym):
if sym == 'SE0':