summaryrefslogtreecommitdiff
path: root/decoders/nunchuk
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2013-12-28 15:15:06 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2013-12-28 15:15:06 +0100
commit001974848a862a7eeab7efc81cc0b21aec56464d (patch)
treedb0ff7af95ecc6aa53597cf26856b46a4a92daef /decoders/nunchuk
parentea48f54366eec05c4675c29387e741ddeeb9d2f5 (diff)
downloadlibsigrokdecode-001974848a862a7eeab7efc81cc0b21aec56464d.tar.gz
libsigrokdecode-001974848a862a7eeab7efc81cc0b21aec56464d.zip
Do some more I2C to I²C changes.
Diffstat (limited to 'decoders/nunchuk')
-rw-r--r--decoders/nunchuk/pd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/decoders/nunchuk/pd.py b/decoders/nunchuk/pd.py
index 5c719cb..a34b68f 100644
--- a/decoders/nunchuk/pd.py
+++ b/decoders/nunchuk/pd.py
@@ -52,11 +52,11 @@ class Decoder(srd.Decoder):
self.out_ann = self.register(srd.OUTPUT_ANN)
def putx(self, data):
- # Helper for annotations which span exactly one I2C packet.
+ # Helper for annotations which span exactly one I²C packet.
self.put(self.ss, self.es, self.out_ann, data)
def putb(self, data):
- # Helper for annotations which span a block of I2C packets.
+ # Helper for annotations which span a block of I²C packets.
self.put(self.block_start_sample, self.block_end_sample,
self.out_ann, data)
@@ -157,12 +157,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'