From b0918d40e285e7782f4e86356c41648dc748e477 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 12 Mar 2014 00:51:06 +0100 Subject: Various PDs: Minor option related fixes. --- decoders/onewire_link/pd.py | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'decoders/onewire_link') diff --git a/decoders/onewire_link/pd.py b/decoders/onewire_link/pd.py index d603dba..ceb5da2 100644 --- a/decoders/onewire_link/pd.py +++ b/decoders/onewire_link/pd.py @@ -37,33 +37,24 @@ class Decoder(srd.Decoder): ) options = ( {'id': 'overdrive', - 'desc': 'Overdrive mode', - 'default': 'no'}, + 'desc': 'Overdrive mode', 'default': 'no', 'values': ('yes', 'no')}, # Time options (specified in microseconds): {'id': 'cnt_normal_bit', - 'desc': 'Normal mode sample bit time (μs)', - 'default': 15}, + 'desc': 'Normal mode sample bit time (μs)', 'default': 15}, {'id': 'cnt_normal_slot', - 'desc': 'Normal mode data slot time (μs)', - 'default': 60}, + 'desc': 'Normal mode data slot time (μs)', 'default': 60}, {'id': 'cnt_normal_presence', - 'desc': 'Normal mode sample presence time (μs)', - 'default': 75}, + 'desc': 'Normal mode sample presence time (μs)', 'default': 75}, {'id': 'cnt_normal_reset', - 'desc': 'Normal mode reset time (μs)', - 'default': 480}, + 'desc': 'Normal mode reset time (μs)', 'default': 480}, {'id': 'cnt_overdrive_bit', - 'desc': 'Overdrive mode sample bit time (μs)', - 'default': 2}, + 'desc': 'Overdrive mode sample bit time (μs)', 'default': 2}, {'id': 'cnt_overdrive_slot', - 'desc': 'Overdrive mode data slot time (μs)', - 'default': 7.3}, + 'desc': 'Overdrive mode data slot time (μs)', 'default': 7.3}, {'id': 'cnt_overdrive_presence', - 'desc': 'Overdrive mode sample presence time (μs)', - 'default': 10}, + 'desc': 'Overdrive mode sample presence time (μs)', 'default': 10}, {'id': 'cnt_overdrive_reset', - 'desc': 'Overdrive mode reset time (μs)', - 'default': 48}, + 'desc': 'Overdrive mode reset time (μs)', 'default': 48}, ) annotations = ( ('bit', 'Bit'), -- cgit v1.2.3-70-g09d2