From: Uwe Hermann Date: Sun, 9 Feb 2014 18:26:59 +0000 (+0100) Subject: usb_packet: s/NACK/NAK/. X-Git-Tag: libsigrokdecode-0.3.0~90 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=eafe8f08a1cb46e411dcd358f0d748f7d1aa47aa;p=libsigrokdecode.git usb_packet: s/NACK/NAK/. The USB spec spells this as "NAK". --- diff --git a/decoders/usb_packet/pd.py b/decoders/usb_packet/pd.py index 0a323a2..7524194 100644 --- a/decoders/usb_packet/pd.py +++ b/decoders/usb_packet/pd.py @@ -55,7 +55,7 @@ Packet: - 'DATA', 'DATA2', [, , , , ] - 'DATA', 'MDATA', [, , , , ] - 'HANDSHAKE', 'ACK', [, , ] - - 'HANDSHAKE', 'NACK', [, , ] + - 'HANDSHAKE', 'NAK', [, , ] - 'HANDSHAKE', 'STALL', [, , ] - 'HANDSHAKE', 'NYET', [, , ] - 'SPECIAL', 'PRE', [, , , , , ] @@ -122,7 +122,7 @@ def get_category(pidname): return 'TOKEN' elif pidname in ('DATA0', 'DATA1', 'DATA2', 'MDATA'): return 'DATA' - elif pidname in ('ACK', 'NACK', 'STALL', 'NYET'): + elif pidname in ('ACK', 'NAK', 'STALL', 'NYET'): return 'HANDSHAKE' else: return 'SPECIAL' @@ -177,7 +177,7 @@ class Decoder(srd.Decoder): ['packet-data2', 'Packet: DATA2'], ['packet-mdata', 'Packet: MDATA'], ['packet-ack', 'Packet: ACK'], - ['packet-nack', 'Packet: NACK'], + ['packet-nak', 'Packet: NAK'], ['packet-stall', 'Packet: STALL'], ['packet-nyet', 'Packet: NYET'], ['packet-pre', 'Packet: PRE'],