]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: onewire: Get optional 'pwr' probe value, too.
authorUwe Hermann <redacted>
Tue, 22 May 2012 23:01:03 +0000 (01:01 +0200)
committerUwe Hermann <redacted>
Tue, 22 May 2012 23:01:03 +0000 (01:01 +0200)
decoders/onewire/onewire.py

index 92cc7dc48b725f4cc332b12d913a2be6a818c499..22ad7ee566fa80abd597751e386901bb4218524a 100644 (file)
@@ -94,7 +94,7 @@ class Decoder(srd.Decoder):
         pass
 
     def decode(self, ss, es, data):
-        for (self.samplenum, owr) in data:
+        for (self.samplenum, (owr, pwr)) in data:
 
             # Data link layer