uavcan_v1: SocketCAN set 'can_fd' based on CONFIG

This commit is contained in:
JacobCrabill
2022-03-18 09:03:06 -07:00
parent fd3662097f
commit 73b1de85cb
+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 */