Skip to content

Commit

Permalink
Adjust size of ec_EOE_t to max mailbox size
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas karlsson committed Jun 2, 2021
1 parent f9db4f2 commit 9de0889
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions soem/ethercateoe.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ extern "C"
{
#endif

#include "ethercattype.h"
#include "ethercat.h"

/* use maximum size for EOE mailbox data */
#define EC_MAXEOEDATA EC_MAXMBX
/* use maximum size for EOE mailbox data - mbxheader and 2x frameinfo */
#define EC_MAXEOEDATA (EC_MAXMBX - (sizeof(ec_mbxheadert) +\
sizeof(uint16_t) +\
sizeof(uint16_t)))

/** DNS length according to ETG 1000.6 */
#define EOE_DNS_NAME_LENGTH 32
Expand Down

0 comments on commit 9de0889

Please sign in to comment.