mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-19 01:21:54 +08:00
Output debug message only on debug level > 0.
This commit is contained in:
@@ -491,8 +491,8 @@ void ec_voe_handler_state_read_nosync_response(ec_voe_handler_t *voe)
|
||||
if (datagram->working_counter == 0) {
|
||||
voe->state = ec_voe_handler_state_error;
|
||||
voe->request_state = EC_INT_REQUEST_FAILURE;
|
||||
EC_DBG("Slave (%u) did not send data with Mailbox.",
|
||||
slave->ring_position);
|
||||
if (master->debug_level)
|
||||
EC_DBG("Slave %u did not send VoE data.", slave->ring_position);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user