summaryrefslogtreecommitdiff
path: root/decoders/i2c.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-15 02:01:37 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-15 02:01:37 +0100
commitba24aaf7608bc5f26705b2747a2f7c05c52a7820 (patch)
treef42818b811d7b53fc1323a27434017c22677a1a7 /decoders/i2c.py
parent5dd1c937a764a1517a8e12d10af6c3fcb9c8b3c9 (diff)
downloadlibsigrokdecode-ba24aaf7608bc5f26705b2747a2f7c05c52a7820.tar.gz
libsigrokdecode-ba24aaf7608bc5f26705b2747a2f7c05c52a7820.zip
srd: I2C: Small fixup.
Diffstat (limited to 'decoders/i2c.py')
-rw-r--r--decoders/i2c.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/i2c.py b/decoders/i2c.py
index 5d616db..0044190 100644
--- a/decoders/i2c.py
+++ b/decoders/i2c.py
@@ -84,8 +84,8 @@
# - 'DATA WRITE' (Data, write)
# - 'STOP' (STOP condition)
#
-# <data> is the data or address byte associated with the ADDRESS* and DATA*
-# command. For START, START_REPEAT and STOP, this is None.
+# <data> is the data or address byte associated with the 'ADDRESS*' and 'DATA*'
+# command. For 'START', 'START REPEAT' and 'STOP', this is None.
#
# <ack_bit> is either 'ACK' or 'NACK', but may also be None.
#
@@ -184,7 +184,7 @@ class Decoder(srd.Decoder):
return False
def found_start(self, scl, sda):
- cmd = 'START_REPEAT' if (self.is_repeat_start == 1) else 'START'
+ cmd = 'START REPEAT' if (self.is_repeat_start == 1) else 'START'
self.put(self.out_proto, [cmd, None, None])
self.put(self.out_ann, [ANN_SHIFTED, [protocol[cmd][0]]])