summaryrefslogtreecommitdiff
path: root/decoders/can/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/can/pd.py')
-rw-r--r--decoders/can/pd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/can/pd.py b/decoders/can/pd.py
index 3ab82b0..8817097 100644
--- a/decoders/can/pd.py
+++ b/decoders/can/pd.py
@@ -147,9 +147,9 @@ class Decoder(srd.Decoder):
# Determine the position of the next desired bit's sample point.
def get_sample_point(self, bitnum):
samplenum = self.dom_edge_snum
- samplenum += int(self.bit_width * (bitnum - self.dom_edge_bcount))
- samplenum += int(self.sample_point)
- return samplenum
+ samplenum += self.bit_width * (bitnum - self.dom_edge_bcount)
+ samplenum += self.sample_point
+ return int(samplenum)
def is_stuff_bit(self):
# CAN uses NRZ encoding and bit stuffing.