summaryrefslogtreecommitdiff
path: root/decoders/ddc.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-14 21:34:06 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-14 21:34:06 +0100
commita2d2aff27099449deb1a791b3adc05ee610861e6 (patch)
tree6ab5ef16228ef87a4290ce681f81d49233ab2447 /decoders/ddc.py
parentea90233eb2e76cca10adf3ed3c016c5b6cb993e1 (diff)
downloadlibsigrokdecode-a2d2aff27099449deb1a791b3adc05ee610861e6.tar.gz
libsigrokdecode-a2d2aff27099449deb1a791b3adc05ee610861e6.zip
srd: I2C: No need for underscores in string cmds.
Diffstat (limited to 'decoders/ddc.py')
-rw-r--r--decoders/ddc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/ddc.py b/decoders/ddc.py
index 9b5bc5f..395f72f 100644
--- a/decoders/ddc.py
+++ b/decoders/ddc.py
@@ -60,10 +60,10 @@ class Decoder(srd.Decoder):
if self.state is None:
# Wait for the DDC session to start.
- if cmd in ('START', 'START_REPEAT'):
+ if cmd in ('START', 'START REPEAT'):
self.state = 'start'
elif self.state == 'start':
- if cmd == 'ADDRESS_READ' and data == 80:
+ if cmd == 'ADDRESS READ' and data == 80:
# 80 is the I2C slave address of a connected display,
# so this marks the start of the DDC data transfer.
self.state = 'transfer'
@@ -71,7 +71,7 @@ class Decoder(srd.Decoder):
# Got back to the idle state.
self.state = None
elif self.state == 'transfer':
- if cmd == 'DATA_READ':
+ if cmd == 'DATA READ':
# There shouldn't be anything but data reads on this
# address, so ignore everything else.
self.put(ss, es, self.out_ann, [0, ['0x%.2x' % data]])