mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 13:07:34 +08:00
uavcan_v1: SocketCAN set 'can_fd' based on CONFIG
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user