summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-03-12 00:17:46 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2014-03-12 00:17:46 +0100
commit3a851e5c7ba119cea6e8604a3f3e7ac27c80f536 (patch)
tree8750c3dba7a9c62b7a5e6d9315811b5002ffd274 /decoders
parent65f6eb77a33e6e7185376b1d9b8f3f0c62273d27 (diff)
downloadlibsigrokdecode-3a851e5c7ba119cea6e8604a3f3e7ac27c80f536.tar.gz
libsigrokdecode-3a851e5c7ba119cea6e8604a3f3e7ac27c80f536.zip
can: Make sample_point a float option.
This allows users to set values like 70.5% or such.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/can/pd.py2
1 files changed, 1 insertions, 1 deletions
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'),