uavcan_v1: SocketCAN set 'can_fd' based on CONFIG

This commit is contained in:
JacobCrabill
2022-04-12 15:57:21 -07:00
parent aba7e592c3
commit d3ac2a0869
+4 -1
View File
@@ -56,8 +56,11 @@ int CanardSocketCAN::init()
struct ifreq ifr;
//FIXME HOTFIX to make this code compile
#ifdef CONFIG_NET_CAN_CANFD
bool can_fd = 1;
#else
bool can_fd = 0;
#endif
_can_fd = can_fd;
/* open socket */