From: Joel Holdsworth Date: Sat, 28 Dec 2013 08:17:02 +0000 (+0100) Subject: mxc6225xu: Replace I2C with I²C X-Git-Tag: libsigrokdecode-0.3.0~171 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=31f1a29687604b8da5a4a3c46a72f82fc783947b mxc6225xu: Replace I2C with I²C --- diff --git a/decoders/mxc6225xu/__init__.py b/decoders/mxc6225xu/__init__.py index cd67941..783be19 100644 --- a/decoders/mxc6225xu/__init__.py +++ b/decoders/mxc6225xu/__init__.py @@ -23,8 +23,8 @@ MEMSIC MXC6225XU protocol decoder. The MEMSIC MXC6225XU is a Digital Thermal Orientation Sensor (DTOS). -The chip's I2C interface supports standard mode and fast mode (max. 400kHz). -Its I2C slave address is 0x2a. +The chip's I²C interface supports standard mode and fast mode (max. 400kHz). +Its I²C slave address is 0x2a. Details: TODO diff --git a/decoders/mxc6225xu/pd.py b/decoders/mxc6225xu/pd.py index 8b119e8..4a7e666 100644 --- a/decoders/mxc6225xu/pd.py +++ b/decoders/mxc6225xu/pd.py @@ -164,12 +164,12 @@ class Decoder(srd.Decoder): def decode(self, ss, es, data): cmd, databyte = data - # Store the start/end samples of this I2C packet. + # Store the start/end samples of this I²C packet. self.ss, self.es = ss, es # State machine. if self.state == 'IDLE': - # Wait for an I2C START condition. + # Wait for an I²C START condition. if cmd != 'START': return self.state = 'GET SLAVE ADDR'