From 3a851e5c7ba119cea6e8604a3f3e7ac27c80f536 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 12 Mar 2014 00:17:46 +0100 Subject: can: Make sample_point a float option. This allows users to set values like 70.5% or such. --- decoders/can/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders/can') 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'), -- cgit v1.2.3-70-g09d2