]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/i2c.py
srd: I2C: Small fixup.
[libsigrokdecode.git] / decoders / i2c.py
index 5d616db13325111f66b637f0b4b407d56f0f3619..0044190a9f9fde656a81890458c16cf8ba6dcbb6 100644 (file)
@@ -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]]])