Adjust size of ec_EOE_t to max mailbox size

fix #514
This commit is contained in:
andreas karlsson 2021-06-02 20:18:25 +02:00
parent f9db4f2b23
commit 9de0889802
1 changed files with 5 additions and 3 deletions

View File

@ -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