From: Uwe Hermann Date: Sun, 15 Jan 2012 01:01:37 +0000 (+0100) Subject: srd: I2C: Small fixup. X-Git-Tag: libsigrokdecode-0.1.0~143 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=ba24aaf7608bc5f26705b2747a2f7c05c52a7820;ds=sidebyside srd: I2C: Small fixup. --- 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) # -# is the data or address byte associated with the ADDRESS* and DATA* -# command. For START, START_REPEAT and STOP, this is None. +# is the data or address byte associated with the 'ADDRESS*' and 'DATA*' +# command. For 'START', 'START REPEAT' and 'STOP', this is None. # # 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]]])