summaryrefslogtreecommitdiff
path: root/decoders/onewire_link
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-07-08 21:36:53 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-07-09 18:00:22 +0200
commit21b39043472eeeb2e0155eafc73247f5010af714 (patch)
treead799e5b6b18fbfa40b124060606141bed4b046b /decoders/onewire_link
parent21cda9512f29947617da45822ab524b1f76f56c1 (diff)
downloadlibsigrokdecode-21b39043472eeeb2e0155eafc73247f5010af714.tar.gz
libsigrokdecode-21b39043472eeeb2e0155eafc73247f5010af714.zip
Various PDs: Minor consistency fixes.
(Consistently use single-quotes for all Python strings everywhere)
Diffstat (limited to 'decoders/onewire_link')
-rw-r--r--decoders/onewire_link/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/onewire_link/pd.py b/decoders/onewire_link/pd.py
index 93cd51a..c8d6cd7 100644
--- a/decoders/onewire_link/pd.py
+++ b/decoders/onewire_link/pd.py
@@ -254,10 +254,10 @@ class Decoder(srd.Decoder):
# Save the sample number for the rising edge.
self.rise = self.samplenum
self.putfr([2, ['Reset', 'Rst', 'R']])
- self.state = "WAIT FOR PRESENCE DETECT"
+ self.state = 'WAIT FOR PRESENCE DETECT'
# Otherwise this is assumed to be a data bit.
else:
- self.state = "WAIT FOR FALLING EDGE"
+ self.state = 'WAIT FOR FALLING EDGE'
elif self.state == 'WAIT FOR PRESENCE DETECT':
# Sample presence status.
t = self.samplenum - self.rise