summaryrefslogtreecommitdiff
path: root/decoders/lpc
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2013-10-09 19:24:48 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2013-10-13 13:48:34 +0200
commit59d3200cb1f7c64aabffcf3e69e66626d2fd83b7 (patch)
tree86dc8e4f50091f0c7217b69ad5470bd72084c0ce /decoders/lpc
parentedc6c8fd1ff5c603163e6b1e3d0f6cee3de8aa55 (diff)
downloadlibsigrokdecode-59d3200cb1f7c64aabffcf3e69e66626d2fd83b7.tar.gz
libsigrokdecode-59d3200cb1f7c64aabffcf3e69e66626d2fd83b7.zip
lpc: Fix handling of optional probes.
Diffstat (limited to 'decoders/lpc')
-rw-r--r--decoders/lpc/pd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/lpc/pd.py b/decoders/lpc/pd.py
index 398bf9b..7664156 100644
--- a/decoders/lpc/pd.py
+++ b/decoders/lpc/pd.py
@@ -140,7 +140,7 @@ class Decoder(srd.Decoder):
self.databyte = 0
self.tarcount = 0
self.synccount = 0
- self.oldpins = (-1, -1, -1, -1, -1, -1, -1)
+ self.oldpins = None
def start(self, metadata):
# self.out_proto = self.add(srd.OUTPUT_PROTO, 'lpc')
@@ -308,8 +308,8 @@ class Decoder(srd.Decoder):
self.oldpins = pins
# Get individual pin values into local variables.
- # TODO: Handle optional pins.
- (lframe, lreset, lclk, lad0, lad1, lad2, lad3) = pins
+ (lframe, lreset, lclk, lad0, lad1, lad2, lad3) = pins[:7]
+ (ldrq, serirq, clkrun, lpme, lpcpd, lsmi) = pins[7:]
# Only look at the signals upon rising LCLK edges. The LPC clock
# is the same as the PCI clock (which is sampled at rising edges).