From: Uwe Hermann Date: Tue, 11 Mar 2014 23:17:46 +0000 (+0100) Subject: can: Make sample_point a float option. X-Git-Tag: libsigrokdecode-0.3.0~50 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3a851e5c7ba119cea6e8604a3f3e7ac27c80f536;p=libsigrokdecode.git can: Make sample_point a float option. This allows users to set values like 70.5% or such. --- diff --git a/decoders/can/pd.py b/decoders/can/pd.py index 3f27c30..51b7a72 100644 --- a/decoders/can/pd.py +++ b/decoders/can/pd.py @@ -34,7 +34,7 @@ class Decoder(srd.Decoder): ) options = ( {'id': 'bitrate', 'desc': 'Bitrate', 'default': 1000000}, # 1Mbit/s - {'id': 'sample_point', 'desc': 'Sample point', 'default': 70}, # 70% + {'id': 'sample_point', 'desc': 'Sample point', 'default': 70.0}, # 70% ) annotations = ( ('data', 'CAN payload data'),