summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--decoders/spi.py2
-rw-r--r--decoders/srd_usb.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/decoders/spi.py b/decoders/spi.py
index 17d9628..2c7445f 100644
--- a/decoders/spi.py
+++ b/decoders/spi.py
@@ -38,7 +38,7 @@ class Decoder(sigrokdecode.Decoder):
options = {}
def __init__(self):
- self.oldsck = True
+ self.oldsck = 1
self.rxcount = 0
self.rxdata = 0
self.bytesreceived = 0
diff --git a/decoders/srd_usb.py b/decoders/srd_usb.py
index 4792eeb..3969532 100644
--- a/decoders/srd_usb.py
+++ b/decoders/srd_usb.py
@@ -45,10 +45,10 @@ import sigrokdecode
# States
SE0, J, K, SE1 = 0, 1, 2, 3
syms = {
- (False, False): SE0,
- (True, False): J,
- (False, True): K,
- (True, True): SE1,
+ (0, 0): SE0,
+ (1, 0): J,
+ (0, 1): K,
+ (1, 1): SE1,
}
def bitstr_to_num(bitstr):