diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-01-30 22:37:29 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-01-30 22:42:24 +0100 |
commit | c515eed7ef7a04a42b5b34abd308e08d6942835e (patch) | |
tree | 90d12109e96a091898a1d2961f8abc685d6fd06c /decoders/usb_packet | |
parent | 4467372a2e39bb72648eebbb96934147681110c2 (diff) | |
download | libsigrokdecode-c515eed7ef7a04a42b5b34abd308e08d6942835e.tar.gz libsigrokdecode-c515eed7ef7a04a42b5b34abd308e08d6942835e.zip |
s/out_proto/out_python/.
The output type is now called OUTPUT_PYTHON, adapt all PDs to that.
Diffstat (limited to 'decoders/usb_packet')
-rw-r--r-- | decoders/usb_packet/pd.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/decoders/usb_packet/pd.py b/decoders/usb_packet/pd.py index e6fc355..8e5fb9e 100644 --- a/decoders/usb_packet/pd.py +++ b/decoders/usb_packet/pd.py @@ -22,7 +22,7 @@ import sigrokdecode as srd ''' -Protocol output format: +OUTPUT_PYTHON format: Packet: [<ptype>, <pdata>] @@ -162,19 +162,19 @@ class Decoder(srd.Decoder): self.state = 'WAIT FOR SOP' def putpb(self, data): - self.put(self.ss, self.es, self.out_proto, data) + self.put(self.ss, self.es, self.out_python, data) def putb(self, data): self.put(self.ss, self.es, self.out_ann, data) def putpp(self, data): - self.put(self.ss_packet, self.es_packet, self.out_proto, data) + self.put(self.ss_packet, self.es_packet, self.out_python, data) def putp(self, data): self.put(self.ss_packet, self.es_packet, self.out_ann, data) def start(self): - self.out_proto = self.register(srd.OUTPUT_PYTHON) + self.out_python = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) def handle_packet(self): @@ -251,7 +251,7 @@ class Decoder(srd.Decoder): data = data[8:] self.packet_summary += ' ]' - # Convenience proto output (no annotation) for all bytes together. + # Convenience python output (no annotation) for all bytes together. self.ss, self.es = self.bits[16][1], self.bits[-16][2] self.putpb(['DATABYTES', databytes]) self.packet.append(databytes) |