From: Uwe Hermann Date: Wed, 11 May 2016 16:39:02 +0000 (+0200) Subject: wiegand: Make bitwidth_ms option values integer (not string). X-Git-Tag: libsigrokdecode-0.5.0~171 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=366580f2617432561b0a93bc32e56f83895a7e48;p=libsigrokdecode.git wiegand: Make bitwidth_ms option values integer (not string). --- diff --git a/decoders/wiegand/pd.py b/decoders/wiegand/pd.py index 6194194..1f03651 100644 --- a/decoders/wiegand/pd.py +++ b/decoders/wiegand/pd.py @@ -37,7 +37,7 @@ class Decoder(srd.Decoder): {'id': 'active', 'desc': 'Data lines active level', 'default': 'low', 'values': ('low', 'high')}, {'id': 'bitwidth_ms', 'desc': 'Single bit width in milliseconds', - 'default': '4', 'values': ('1', '2', '4', '8', '16', '32')}, + 'default': 4, 'values': (1, 2, 4, 8, 16, 32)}, ) annotations = ( ('bits', 'Bits'),