From: Uwe Hermann Date: Tue, 6 Jun 2017 09:51:04 +0000 (+0200) Subject: Drop trailing whitespace in various PDs. X-Git-Tag: libsigrokdecode-0.5.0~12 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=18101a318c4ed6ed3f6a32ef7e4867ed7be1ff2a;p=libsigrokdecode.git Drop trailing whitespace in various PDs. --- diff --git a/decoders/arm_itm/__init__.py b/decoders/arm_itm/__init__.py index 3529c2c..1733d36 100644 --- a/decoders/arm_itm/__init__.py +++ b/decoders/arm_itm/__init__.py @@ -18,7 +18,7 @@ ## ''' -This decoder stacks on top of the 'uart' or 'arm_tpiu' PD and decodes the +This decoder stacks on top of the 'uart' or 'arm_tpiu' PD and decodes the ARM Cortex-M processor trace data from Instrumentation Trace Macroblock. ''' diff --git a/decoders/midi/pd.py b/decoders/midi/pd.py index 99b63b0..21c4024 100644 --- a/decoders/midi/pd.py +++ b/decoders/midi/pd.py @@ -2,7 +2,7 @@ ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2013-2016 Uwe Hermann -## Copyright (C) 2016 Chris Dreher +## Copyright (C) 2016 Chris Dreher ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by diff --git a/decoders/qi/pd.py b/decoders/qi/pd.py index 9782ee5..0c880dd 100644 --- a/decoders/qi/pd.py +++ b/decoders/qi/pd.py @@ -146,7 +146,7 @@ class Decoder(srd.Decoder): 'C: PC = %d MP = %d P = %d C = %d WS = %d WO = %d' % (powerclass, maxpower, prop, count, winsize, winoff), 'Configuration', 'C']) - elif self.packet[0] == 0x71: # Identification + elif self.packet[0] == 0x71: # Identification version = '%d.%d' % ((self.packet[1] & 0xf0) >> 4, self.packet[1] & 0x0f) mancode = '%02x%02x' % (self.packet[2], self.packet[3]) devid = '%02x%02x%02x%02x' % (self.packet[4] & ~0x80, diff --git a/decoders/tca6408a/pd.py b/decoders/tca6408a/pd.py index 6d4be72..9fa9d23 100644 --- a/decoders/tca6408a/pd.py +++ b/decoders/tca6408a/pd.py @@ -91,7 +91,7 @@ class Decoder(srd.Decoder): return self.state = 'GET SLAVE ADDR' elif self.state == 'GET SLAVE ADDR': - self.chip = databyte + self.chip = databyte self.state = 'GET REG ADDR' elif self.state == 'GET REG ADDR': # Wait for a data write (master selects the slave register).