mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-22 18:13:46 +08:00
Changed output of ec_state_string() for error flag to "+ ERROR".
This commit is contained in:
+2
-2
@@ -265,8 +265,8 @@ size_t ec_state_string(uint8_t states, /**< slave states */
|
||||
off += sprintf(buffer + off, "OP");
|
||||
}
|
||||
if (states & EC_SLAVE_STATE_ACK_ERR) {
|
||||
if (!first) off += sprintf(buffer + off, ", ");
|
||||
off += sprintf(buffer + off, "ERR");
|
||||
if (!first) off += sprintf(buffer + off, " + ");
|
||||
off += sprintf(buffer + off, "ERROR");
|
||||
}
|
||||
|
||||
return off;
|
||||
|
||||
Reference in New Issue
Block a user