Skip to content

Commit 1471f69

Browse files
committed
fix canfd flag
1 parent 0a5fca8 commit 1471f69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

candle/candle_bus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, channel: Union[int, str], can_filters: Optional[can.typecheck
4343

4444
# Set bit timing.
4545
props_seg = 1
46-
if self._channel.feature.fd:
46+
if fd and self._channel.feature.fd:
4747
bit_timing_fd = can.BitTimingFd.from_sample_point(
4848
f_clock=self._channel.clock_frequency,
4949
nom_bitrate=bitrate,

0 commit comments

Comments
 (0)