From 91d4b21ca67c027fbbd601bf4a2c3cb2aa80e25c Mon Sep 17 00:00:00 2001 From: Robert Burger Date: Tue, 27 Aug 2024 18:11:09 +0200 Subject: [PATCH] fix: ambiguous error codes --- include/libethercat/error_codes.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libethercat/error_codes.h b/include/libethercat/error_codes.h index f6bba68..f3d2d26 100644 --- a/include/libethercat/error_codes.h +++ b/include/libethercat/error_codes.h @@ -101,9 +101,9 @@ #define EC_ERROR_MAILBOX_READ (EC_ERROR_MAILBOX_MASK | 0x00004000) //!< \brief Mailbox error on reading mailbox. #define EC_ERROR_MAILBOX_WRITE (EC_ERROR_MAILBOX_MASK | 0x00008000) //!< \brief Mailbox error on writing mailbox. -#define EC_ERROR_MAILBOX_OUT_OF_SEND_BUFFERS (EC_ERROR_MAILBOX_MASK | 0x00000001) //!< \brief Mailbox ran out of read buffers. See LEC_MAX_MBX_ENTRIES. -#define EC_ERROR_MAILBOX_OUT_OF_WRITE_BUFFERS (EC_ERROR_MAILBOX_MASK | 0x00000002) //!< \brief Mailbox ran out of write buffers. See LEC_MAX_MBX_ENTRIES. -#define EC_ERROR_MAILBOX_BUFFER_TOO_SMALL (EC_ERROR_MAILBOX_MASK | 0x00000004) //!< \brief Mailbox buffer is too small. +#define EC_ERROR_MAILBOX_OUT_OF_SEND_BUFFERS (EC_ERROR_MAILBOX_MASK | 0x00010000) //!< \brief Mailbox ran out of read buffers. See LEC_MAX_MBX_ENTRIES. +#define EC_ERROR_MAILBOX_OUT_OF_WRITE_BUFFERS (EC_ERROR_MAILBOX_MASK | 0x00020000) //!< \brief Mailbox ran out of write buffers. See LEC_MAX_MBX_ENTRIES. +#define EC_ERROR_MAILBOX_BUFFER_TOO_SMALL (EC_ERROR_MAILBOX_MASK | 0x00040000) //!< \brief Mailbox buffer is too small. #define EC_ERROR_MAILBOX_COE_MASK (0x00200000) //!< \brief CoE mailbox error mask. #define EC_ERROR_MAILBOX_COE_INDEX_NOT_FOUND (EC_ERROR_MAILBOX_COE_MASK | 0x00000001) //!< \brief Mailbox CoE