summaryrefslogtreecommitdiff
path: root/decoders/onewire_link/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/onewire_link/pd.py')
-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