Merge pull request #521 from nakarlsson/master

Adjust size of ec_EOE_t to max mailbox size
This commit is contained in:
ArthurKetels 2021-06-02 21:02:23 +02:00 committed by GitHub
commit 219670218b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -16,10 +16,12 @@ extern "C"
{ {
#endif #endif
#include "ethercattype.h" #include "ethercat.h"
/* use maximum size for EOE mailbox data */ /* use maximum size for EOE mailbox data - mbxheader and 2x frameinfo */
#define EC_MAXEOEDATA EC_MAXMBX #define EC_MAXEOEDATA (EC_MAXMBX - (sizeof(ec_mbxheadert) +\
sizeof(uint16_t) +\
sizeof(uint16_t)))
/** DNS length according to ETG 1000.6 */ /** DNS length according to ETG 1000.6 */
#define EOE_DNS_NAME_LENGTH 32 #define EOE_DNS_NAME_LENGTH 32