diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-05 21:07:23 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-05 21:07:23 +0100 |
commit | c66baa8cbe1d5f0b6d6c4fb8cbe8ca05fcdf7763 (patch) | |
tree | b6dacb1f0bac47c387e983eea79979db91bb2289 /decoders | |
parent | 958f394e13a2f34f3451e10ec0a85743d6cde70a (diff) | |
download | libsigrokdecode-c66baa8cbe1d5f0b6d6c4fb8cbe8ca05fcdf7763.tar.gz libsigrokdecode-c66baa8cbe1d5f0b6d6c4fb8cbe8ca05fcdf7763.zip |
srd: We use 0/1 instead of False/True at the moment.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/spi.py | 2 | ||||
-rw-r--r-- | decoders/srd_usb.py | 8 |
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): |