mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-02-05 16:50:36 +08:00
Add extra ERROR on mailbox receive timeout to improv diagnostics possibilities
This commit is contained in:
@@ -1097,7 +1097,8 @@ int ecx_mbxreceive(ecx_contextt *context, uint16 slave, ec_mbxbuft *mbx, int tim
|
||||
}
|
||||
else /* no read mailbox available */
|
||||
{
|
||||
wkc = 0;
|
||||
if (wkc > 0)
|
||||
wkc = EC_TIMEOUT;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@ extern "C"
|
||||
#define EC_ERROR -3
|
||||
/** return value too many slaves */
|
||||
#define EC_SLAVECOUNTEXCEEDED -4
|
||||
/** return value request timeout */
|
||||
#define EC_TIMEOUT -5
|
||||
/** maximum EtherCAT frame length in bytes */
|
||||
#define EC_MAXECATFRAME 1518
|
||||
/** maximum EtherCAT LRW frame length in bytes */
|
||||
|
||||
Reference in New Issue
Block a user