Skip to content

Commit

Permalink
stm32h7\stm32_fdcan_sock: reserve space for timeval struct in the int…
Browse files Browse the repository at this point in the history
…ermediate storage of tx and rx CAN frames when timestamp is enabled
  • Loading branch information
rajvindervirk authored and acassis committed Sep 26, 2022
1 parent aa51629 commit 2e1c522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/src/stm32h7/stm32_fdcan_sock.c
Expand Up @@ -43,7 +43,7 @@
#include <nuttx/net/can.h>
#include <netpacket/can.h>

#ifdef CONFIG_NET_CAN_RAW_TX_DEADLINE
#if defined(CONFIG_NET_CAN_RAW_TX_DEADLINE) || defined(CONFIG_NET_TIMESTAMP)
#include <sys/time.h>
#endif

Expand Down Expand Up @@ -112,7 +112,7 @@

#define POOL_SIZE 1

#ifdef CONFIG_NET_CAN_RAW_TX_DEADLINE
#if defined(CONFIG_NET_CAN_RAW_TX_DEADLINE) || defined(CONFIG_NET_TIMESTAMP)
#define MSG_DATA sizeof(struct timeval)
#else
#define MSG_DATA 0
Expand Down

0 comments on commit 2e1c522

Please sign in to comment.