summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2013-10-08 23:20:15 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2013-10-09 00:35:19 +0200
commit01520fa9a6e0fe3eb17dd107a408e6b7e726850a (patch)
tree1c55b7408b9edb73d307363d2f53ae9d0cae4aff
parent497f196ddfa2d0e2e7925d6d8b3dea3548cf1b52 (diff)
downloadlibsigrokdecode-01520fa9a6e0fe3eb17dd107a408e6b7e726850a.tar.gz
libsigrokdecode-01520fa9a6e0fe3eb17dd107a408e6b7e726850a.zip
onewire_link: Default the 'overdrive' option to 'no'.
-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 e7bf8b3..284d329 100644
--- a/decoders/onewire_link/pd.py
+++ b/decoders/onewire_link/pd.py
@@ -38,7 +38,7 @@ class Decoder(srd.Decoder):
{'id': 'pwr', 'name': 'PWR', 'desc': '1-Wire power supply pin'},
]
options = {
- 'overdrive': ['Overdrive', 1],
+ 'overdrive': ['Overdrive mode', 'no'],
# Time options (specified in microseconds):
'cnt_normal_bit': ['Normal mode sample bit time (us)', 15],
'cnt_normal_slot': ['Normal mode data slot time (us)', 60],
@@ -87,7 +87,7 @@ class Decoder(srd.Decoder):
self.samplerate = metadata['samplerate']
# Check if samplerate is appropriate.
- if self.options['overdrive']:
+ if self.options['overdrive'] == 'yes':
if self.samplerate < 2000000:
self.putm([1, ['Sampling rate is too low. Must be above ' +
'2MHz for proper overdrive mode decoding.']])