Skip to content

Commit 8feff4a

Browse files
authored
we may need to know if a CAN device is FD capable before opening the socket (#35)
1 parent ac108fa commit 8feff4a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/linux_can/lib/src/can_device.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class CanDevice {
2626
final PlatformInterface _platformInterface;
2727
final NetworkInterface networkInterface;
2828

29+
bool get isFlexibleDataRateCapable => _platformInterface.isFlexibleDataRateCapable(networkInterface.name);
30+
2931
CanInterfaceAttributes _queryAttributes({Set<CanInterfaceAttribute>? interests}) {
3032
return _platformInterface.queryAttributes(networkInterface.index, interests: interests);
3133
}

0 commit comments

Comments
 (0)